Hi folks,
I have a database that I developed on my computer using Access 2003. On my computer, it contains a reference to EXCEL 11.0 object library.
BUT... the db is saved on a server and is used by a few other folks with older versions of Excel. And they need to use the EXCEL 9.0 object library. I have to manually remove the "MISSING" reference to Excel 11.0 and add the one for Excel 9.0 on one of their computers.
AND... whenever I modify my code, the reference goes back to EXCEL 11.0.
I'd like to fix the referencing issue with VBA by removing the "MISSING" reference and replacing it with the correct version. The problem is I can't seem to remove a reference that "IsBroken":
I get a runtime error 438 "Object doesn't support this property or method"
Any help?
Thanks!
I have a database that I developed on my computer using Access 2003. On my computer, it contains a reference to EXCEL 11.0 object library.
BUT... the db is saved on a server and is used by a few other folks with older versions of Excel. And they need to use the EXCEL 9.0 object library. I have to manually remove the "MISSING" reference to Excel 11.0 and add the one for Excel 9.0 on one of their computers.
AND... whenever I modify my code, the reference goes back to EXCEL 11.0.
I'd like to fix the referencing issue with VBA by removing the "MISSING" reference and replacing it with the correct version. The problem is I can't seem to remove a reference that "IsBroken":
Code:
Sub delBrokenRefs()
Dim r As Reference
For Each r In Application.References
If r.IsBroken Then
Debug.Print "Removing " & r.Guid
Application.References.Remove (r)
End If
Next r
End Sub
I get a runtime error 438 "Object doesn't support this property or method"
Any help?
Thanks!