Microsoft KB Archive/287104

= XL2002: Initialization Error Message When You Cancel the Installation of VBA =

Article ID: 287104

Article Last Modified on 1/31/2007

-

APPLIES TO


 * Microsoft Excel 2002 Standard Edition

-



This article was previously published under Q287104



SYMPTOMS
If you cancel the installation of Microsoft Visual Basic for Applications (VBA) in Microsoft Excel, you may receive an error message similar to the following:

An error occurred initializing the VBA libraries (1004)



CAUSE
This behavior can occur when all of the following conditions are true:
 * When you install Excel or Microsoft Office, VBA is set to install on first use.

-and-
 * You have not yet used VBA in this installation.

-and-
 * You click Visual Basic Editor under Macro on the Tools menu, and then click No when prompted to install VBA.



RESOLUTION
To prevent this issue from occurring, follow these steps to install VBA:
 * 1) Start Excel.
 * 2) On the Tools menu, point to Macro, and then click Visual Basic Editor.
 * 3) When prompted to install VBA, click Yes.



MORE INFORMATION
For additional information about problems that may occur when VBA is not installed, click the article number below to view the article in the Microsoft Knowledge Base:

287105 XL2002: Excel Opens Workbook in Repair Mode when Workbook Contains Macros

Additional query words: XL2002 prb OfficeErrorMessages 10045

Keywords: kberrmsg kbpending kbprb KB287104

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.