When I try to use "vbaman" command to load a project, it shows error msg "Object library invalid or contains references to object definitions that could not be found."
What does this mean? and How can I fix it ?
you have references to libraries the VBA-module can't find on your current system.
Start therefor VBAIDE with your project, then you should find a pulldown-menu called "Tools" (or "Extras"?) and within that you'll find "References" ==> go into this and the dialog shows you then what you have referenced but could not be found.
- alfred -
I've encountered the same problem.
What I've found in my research is this was caused by the security updates from Microsoft for April 2012. Specifically "MS12-027" which is an update to the Windows Common Controls.
I'm still looking for a way to fix the problem on 2 workstations that have the update installed and now my custom VBA applications won't run.
Has anyone else had this problem?
what libs have these VBA-macros referenced? And if you have forms used, what controls do these forms contain?
What may be a hint (e.g. from >>>this page<<<, but also some others) is that MSCOMCTL.OCX and/or MSCOMCT2.OCX lost there registry-entries.
- alfred -
Thank you for the quick reply.
Yes I do use the Windows Common Controls 6.0 and the following References;
Visual Basic for Applications
Microsoft Forms 2.0 Object Library
Microsoft Scripting Runtime
AutoCAD 2012 Type Library
Thank you for the link to the other Forum regarding this issue. I'll go and read that in detail.
>> Yes I do use the Windows Common Controls 6.0
That would be my first try: uninstall and reinstall them as with the installation the entries to the registry (and registring as COM-components) are done well.
Good luck, - alfred -
Sorry to say the fresh install of the VBA 6.0 Runtime didn't fix the problem. I'm still getting the same error message on the test maching.
did you find the two files MSCOMCTL.OCX and MSCOMCT2.OCX on your pc? Have you tried to register them usign regsvr32?
Another option may be to start e.g. Excel and try to create the same references in a new VBA-project + set a few control onto a temporary form-object.
- alfred -
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register