1. An error occurred initializing the VBA libraries (1004)
  2. The Command Cannot Be Performed Because a Dialog Box Is Open

Initialization Error Message When You Cancel the Installation of Visual Basic for Applications (813970)

SYMPTOMS
If you cancel the installation of Microsoft Visual Basic for Applications (VBA) in Microsoft Excel, you may receive an error message that is 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:
If VBA is set to install on first use when you install Excel or Microsoft Office.

-and-
You have not yet used VBA in this installation of Excel or Microsoft Office.

-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:
Start Excel.
On the Tools menu, point to Macro, and then click Visual Basic Editor.
When prompted to install VBA, click Yes.

Microsoft KB813970

Back to Main Index

 

"The Command Cannot Be Performed Because a Dialog Box Is Open" Error Message
When You Double-Click to Open a Document"


Applies to: Office 2003

SYMPTOMS
If you double-click a document (for example, in Microsoft Windows Explorer) to open the document in Microsoft Office Word 2003, you may receive the following error message:
 
The command cannot be performed because a dialog box is open. Click "OK" and then close open dialog boxes to continue.
You do not receive this error message in Microsoft Word 2002.

CAUSE
This problem may occur if you have a Word 2003 template in your Startup folder that contains an autoexec macro that opens a dialog box.

WORKAROUND
Method 1: Open in Word
To open the document directly in Word, follow these steps:
Start Word 2003.
On the File menu, click Open.
In the Open dialog box, select the document that you want, and then click Open.

Method 2: Remove the Template from Your Startup Folder
To remove a template from your startup folder, follow these steps:
Quit Word 2003.
Click Start, point to Programs, point to Accessories, and then click Windows Explorer.
Locate one of the following folders:
 
Documents and Settings\username\Application Data\Microsoft\Word\Startup
Program Files\Microsoft Office\Office11\Startup folder


Double-click the Startup folder to open it.
In the right Windows Explorer pane, click to select the template that you want to remove, and then press the DELETE key.


The information in this article applies to:
Microsoft Office Word 2003
Last Reviewed: 12/1/2003 (1.0)
Microsoft Keywords: kberrmsg kbprb KB827732

Back to Main Index