WD97: Errors Starting Visual Basic Editor
ID: Q162053
|
The information in this article applies to:
-
Microsoft Office 97 for Windows
-
Microsoft PowerPoint 97 For Windows
-
Microsoft Word 97 for Windows
SYMPTOMS
When you attempt to start the Visual Basic Editor, one or more of the following error messages may appear:
Could not open macro storage.
-or-
The Visual Basic Environment could not be initialized. Please run Setup to install it correctly.
-or-
<Application> could not fire event.
For example: Word could not fire event.
CAUSE
Possible causes for these errors are:
- Insufficient disk space or low memory. (This is the most common cause.)
- A damaged Word default template (Normal.dot) file.
- A damaged Word document.
- A wrong version for the Vbe.dll file.
- A network rights (permissions) issue, if the Temp directory is on a server.
RESOLUTION
To prevent these errors from occurring, perform the following methods as appropriate:
Method 1: Rename the default Word Normal template.
If this problem occurs with every document you open or create based on the Normal template, use the following steps to correct this problem:
- If you are working in Word, close Word.
- Find the Normal file. The default location is:
<Drive>\Program Files\Microsoft Office\Templates
- Click to select Normal.dot.
- Type a new name; for example, Normal Old.dot.
After you perform this method, if the error continues, perform steps 1-4 again to rename Normal Old.dot back to Normal.dot.
Method 2: Create a new document.
If this problem occurs only with a particular document and does not occur with other documents, use the following steps to correct this problem:
- In a blank Word document, click File on the Insert menu.
- Click to select the document that was causing the error to occur and then click Insert.
- On the File menu, click Save.
- Type in a new file name for your document and then click Save.
NOTE: After your new document has been saved, you can delete the old document that was causing the problem.
Method 3: Rename and reinstall the Vbe.dll file.
For a corrupt, missing, or wrong version of the Vbe.dll file, perform the following steps:
- Quit all currently open applications.
- Start an MS-DOS prompt in a window. To do this, on the Windows taskbar, click Start, point to Programs, and then click MS-DOS Prompt.
- Change the directory to the location of the Vbe.dll file by typing the following and then pressing ENTER:
CD C:\progra~1\common~1\micros~1\vba
NOTE: This is the default directory for the Vbe.dll file. If you have installed Microsoft Office into another drive or directory, you need to type its path.
- Unregister the Vbe.dll file by typing the following:
C:\Windows\System\REGSVR32 /U VBE.DLL
NOTE: This is the default directory for the Windows System directory. If you have installed Windows into another directory, you need to type its path.
- Press ALT+TAB to minimize the MS-DOS Prompt window.
- Start Windows Explorer and rename Vbe.dll to Vbe.old.
NOTE: The default installation folder for Vbe.dll is:
C:\Program Files\Common files\Microsoft Shared\VBA
- In Windows Explorer, copy the file Vbe.dll from the Microsoft Office CD, found in the folder of:
<CDROM drive:>\OS\System\VBE.dll
to the following folder on your hard disk:
C:\Program Files\Common files\Microsoft Shared\VBA
NOTE: This is the default directory for the Vbe.dll file. If you have installed Microsoft Office into another drive or directory, you need to copy to that path.
- Maximize the MS-DOS Prompt window.
- In the MS-DOS Prompt window, make sure the current directory is
C:\Program Files\Common files\Microsoft Shared\VBA
or change the directory to the location of the Vbe.dll file by typing the following and then pressing ENTER:
CD C:\progra~1\common~1\micros~1\vba
NOTE: This is the default directory for the Vbe.dll file. If you have installed Microsoft Office into another drive or directory, you need to type its path and then re-register the Vbe.dll file by typing the following and then pressing ENTER:
C:\Windows\System\REGSVR32 VBE.DLL
- Quit the MS-DOS Prompt window.
Network permissions of Create are necessary. (The Visual Basic
Editor creates a folder in the Temp directory to store files.)
Method 4: Insufficient disk space or low memory.
- Add more RAM to your computer.
NOTE: As a short-term solution, you can free RAM by shutting down unneeded programs.
- Acquire more hard disk space (either by adding a larger disk drive or by freeing disk space by removing unneeded files).
- Restart Windows.
- Uninstall and reinstall Microsoft Office 97.
Method 5: 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 folder the Visual Basic Editor creates, click the article number below to view the article) in the Microsoft Knowledge Base:
Q158875 OFF97: .Exd Files Are Created When You Insert Controls
REFERENCES
For additional information about getting help with Visual Basic for Applications, click the article number below to view the article in the Microsoft Knowledge Base:
Q163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words:
wordcon off97 wd97 vba
Keywords : kbdta kbdtacode OffVBA word8 kbwordvba word97 vbe xlvbainf
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: August 3, 1999