"One of your object libraries is missing or damaged" error message when you open a file by using a VBA macro or when you try to start the Visual Basic Editor
This article was previously published under Q296114 On This PageSYMPTOMS When you open a file with a Visual Basic for Applications
macro or you try to start the Visual Basic Editor, you may receive an error
message similar to one of the following: One of your
object libraries (excel9.olb) is missing or damaged. Please run setup to
install it. One of your object libraries
(stdole32.tlb) is missing or damaged. Please run setup to install it.
When you click OK in the dialog box for the first error, the following error
message appears: An error occurred initializing the VBA
libraries (32797). When you click OK in the dialog box for the second error, the following error
message appears: An error occurred initializing the VBA
libraries (32796). CAUSE The error messages described in the "Symptoms" section of
this article can appear if the permissions on the following registry subkey, or
one or more of its subkeys, has been changed from their default values:
HKEY_LOCAL_MACHINE\Software\Classes\TypeLib
RESOLUTION To resolve this problem reset the permissions to the
default settings by using the appropriate method for your version of
Windows. Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 (http://support.microsoft.com/kb/322756/) How to back up and restore the registry in Windows Windows NT 4.0The default permissions on the HKEY_LOCAL_MACHINE\Software\Classes\TypeLib subkey on Windows NT 4.0 are as follows:User/Group Permission --------------------------------------------------------------------- Creator Owner Full Control Everyone Read <machine name>\Administrators Full Control Interactive Special Access System Full ControlNOTE: The Special Access permissions for the Interactive account include the following:
Query Value Change the permissions back to their default values. To do this,
follow these steps:
Set Value Create Subkey Enumerate Subkeys Notify Delete Read Control
Windows 2000The default permissions on the HKEY_LOCAL_MACHINE\Software\Classes\TypeLib subkey on Windows 2000 are as follows:User/Group Permission --------------------------------------------------------------------- Administrators (<machine name>\Administrators) Full Control Creator Owner Full Control Everyone Read Power Users (<machine name>\Administrators) Special System Full Control Users ReadNOTE: The Special permissions for the Power Users group include the following:
Query Value Change the permissions back to their default values. To do this,
follow these steps:
Set Value Create Subkey Enumerate Subkeys Notify Delete Read Control
APPLIES TO
| Article Translations
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

Back to the top
