Microsoft KB Archive/290935

= You receive error messages when you start the Visual Basic Editor from Word 2002 =

Article ID: 290935

Article Last Modified on 7/27/2006

-

APPLIES TO


 * Microsoft Word 2002 Standard Edition

-



This article was previously published under Q290935





For a Microsoft Office 97 version of this article, see 162053.



SYMPTOMS
When you try to start the Visual Basic Editor, you may receive one or more of the following error messages:

Could not open macro storage.

-or-

The Visual Basic Environment could not be initialized. Please run Setup to install it correctly.

-or-

Word could not fire event.



CAUSE
Possible causes for these error messages include the following:
 * Insufficient disk space or low memory. This is the most common cause.

-or-
 * A damaged Word default template (Normal.dot) file.

-or-
 * A wrong version for the Vbe6.dll file.

-or-
 * A network rights (permissions) issue, if the Temp directory is on a server.



RESOLUTION
To resolve this issue, use one of the following methods.

Method 1: Add RAM or Increase Hard Disk Space
If your computer has insufficient disk space or memory, do one of the following:
 * Add more RAM to your computer.

As a short-term solution, you can free RAM by shutting down unneeded programs.
 * Increase your hard disk space. For example, add a larger hard disk, or remove files that you no longer need to store on your hard disk.
 * Restart Windows.

Method 2: Rename the Default Word Global (Normal.dot) Template
 If you are working in Word, quit Word. Find the Normal.dot template file.

NOTE: The default location of the Normal.dot template file is one of the following:  Microsoft Windows 98 or Microsoft Windows Millennium Edition (Me):

\Application Data\Microsoft Templates

-or- Microsoft Windows 98 or Microsoft Windows Millennium Edition (Me) with profiles, or Microsoft Windows NT 4.0:

\Profiles\ \Application Data\Microsoft\Templates

-or- Microsoft Windows 2000:

C:\Documents and Settings\ \Application Data\Microsoft\Templates

</li></ul> </li> Click to select Normal.dot.</li> Type a new name. For example, type Normal Old.dot .</li></ol>

After you perform Method 1, if an error message appears again, perform steps 1 through 4 again to rename Normal Old.dot back to Normal.dot. Continue by using any of the following methods.

Method 3: Rename and Reinstall the Vbe6.dll File
For a damaged, missing, or wrong version of the Vbe6.dll file, follow these steps.

NOTE: You need your Office CD-ROM to complete this task. <ol> Quit all currently open programs.</li> Start an MS-DOS prompt in a window by doing one of the following: <ul> Microsoft Windows 98:

On the Windows Start menu, point to Programs, and then click MS-DOS Prompt.

-or-</li> Microsoft Windows Me:

On the Windows Start menu, point to Programs, point to Accessories, and then click MS-DOS Prompt.

-or-</li> Microsoft Windows NT 4.0:

On the Windows Start menu, point to Programs, and then click Command Prompt.

-or-</li> Microsoft Windows 2000:

On the Windows Start menu, point to Programs, point to Accessories, and then click Command Prompt.</li></ul> </li> To change the directory to the location of the Vbe6.dll file, type the following (including the quotation marks), and then press ENTER:

CD &quot;C:\Program Files\Common Files\Microsoft Shared\Vba\Vba6&quot;

NOTE: This is the default directory for the Vbe6.dll file. If you installed Microsoft Office into another drive or directory, you must type its path.</li> To unregister the Vbe6.dll file, type the following.

<ul> Microsoft Windows 98 or Windows Me, type:

C:\Windows\System\REGSVR32 /U VBE6.DLL

-or-</li> Microsoft Windows NT 4.0 or Microsoft Windows 2000, type:

C:\Winnt\System32\REGSVR32 /U VBE6.DLL

</li></ul>

NOTE: This is the default directory for the Windows System directory. If you installed Windows into another directory, you must type its path.</li> In the MS-DOS prompt window, rename Vbe.dll to Vbe.old by typing the following and then pressing ENTER:

rename vbe6.dll vbe6.old

</li> Quit the MS-DOS prompt window.</li> Start Microsoft Word.</li> On the Tools menu, point to Macro, and then click Macros.

The Windows Installer detects that the Vbe6.dll file is missing on the system, installs the file from the Office CD, and registers it again.</li></ol>

Method 4: Check Network Permissions
The Visual Basic Editor creates a folder in the Temp directory to store files. If the Temp directory is being accessed via a network share, the network permissions for this folder must have Create permissions. See your network administrator for information about setting permissions. For additional information about the Temp folder that the Visual Basic Editor creates, click the article number below to view the article in the Microsoft Knowledge Base:

290537 OFFXP: EXD Files Are Created When You Insert Controls

Additional query words: vba vbe corrupt corrupted prb OfficeErrorMessages 10094

Keywords: kbvba kbtshoot kbdtacode kberrmsg kbpending kbprb KB290935

-

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

© Microsoft Corporation. All rights reserved.