Microsoft KB Archive/162053: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - ">" to ">")
 
(One intermediate revision by the same user not shown)
Line 74: Line 74:
<div class="errormessage">
<div class="errormessage">


&lt;Application&gt; could not fire event.<br />
<Application> could not fire event.<br />
<br />
<br />
For example: Word could not fire event.
For example: Word could not fire event.
Line 107: Line 107:
<div class="indent">
<div class="indent">


<p>&lt;Drive&gt;\Program Files\Microsoft Office\Templates</p>
<p><Drive>\Program Files\Microsoft Office\Templates</p>


</div></li>
</div></li>
Line 155: Line 155:
<div class="indent">
<div class="indent">


<p>&lt;CDROM drive:&gt;\OS\System\VBE.dll</p>
<p><CDROM drive:>\OS\System\VBE.dll</p>


</div>
</div>

Latest revision as of 19:40, 20 July 2020

Article ID: 162053

Article Last Modified on 1/19/2007



APPLIES TO

  • Microsoft Office 97 Standard Edition
  • Microsoft PowerPoint 97 Standard Edition
  • Microsoft Word 97 Standard Edition



This article was previously published under Q162053


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:

  1. If you are working in Word, close Word.
  2. Find the Normal file. The default location is:

    <Drive>\Program Files\Microsoft Office\Templates

  3. Click to select Normal.dot.
  4. 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:

  1. In a blank Word document, click File on the Insert menu.
  2. Click to select the document that was causing the error to occur and then click Insert.
  3. On the File menu, click Save.
  4. 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:

  1. Quit all currently open applications.
  2. 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.
  3. 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.
  4. 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.
  5. Press ALT+TAB to minimize the MS-DOS Prompt window.
  6. 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

  7. 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.

  8. Maximize the MS-DOS Prompt window.
  9. 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

  10. 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:

158875 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:

163435 VBA: Programming Resources for Visual Basic for Applications



Additional query words: wordcon off97 wd97 vba

Keywords: kbdtacode kbprb KB162053