Object library not registered
The Visual Basic for Applications object library is no longer a standalone file; it is integrated into the dynamic-link library (DLL).
In earlier versions, when you started an application that uses Visual Basic for Applications, certain object libraries were loaded. This error has the following cause and solution:
An attempt was made to load a previous version of the Visual Basic for Applications object library (vaxxx.olb) or host-application object libraries. However, the correct language version of these object libraries could not be found in the system registry.
Reregister your application. On the Macintosh, delete the vba.ini file from the Macintosh Preferences folder, and restart your application.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.