Microsoft KB Archive/162627

= OFF97: Error Message "Vbe.dll Was Unable to Register Itself" =

Article ID: 162627

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Office 97 Standard Edition
 * Microsoft Office 97 Service Pack 1
 * Microsoft Excel 97 Standard Edition
 * Microsoft Word 97 Standard Edition
 * Microsoft Access 97 Standard Edition
 * Microsoft PowerPoint 97 Standard Edition
 * Microsoft Project 98 Standard Edition

-



This article was previously published under Q162627



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When you run Setup, you may receive one or both of the following error messages after all files have been copied to the hard disk on your computer.

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

Microsoft   Setup

Vbe.dll was unable to register itself in the system registry.

-and/or-

Microsoft Visual Basic

Unexpected critical error: can't start program

When you click OK, you receive the following error message

Microsoft   Setup was not completed successfully.

where   is the program you are trying to install.

NOTE: You may also receive this error message if you click Tools on the menu bar and Setup stops responding.



CAUSE
This problem may occur if the following conditions are true for any of the following cases:

Case 1

 * You perform a Run From CD or Run From Network installation of Microsoft Office 97 on your computer.

-and-


 * You remove Microsoft Office 97 from your computer by running the Setup program in maintenance mode and clicking Remove All.

-and-


 * You attempt to perform a Typical or Custom installation of Microsoft Office 97 on your computer.

Case 2

 * You install one of the programs listed at the beginning of this article from an administrative installation point on a network server and install the shared components so that they run from the network server.

-and-


 * You install a second program listed at the beginning of this article.

NOTE: When the shared .dll files are being registered in the Microsoft Windows registry, the location of the shared files cannot be found.

Case 3

 * You perform a Run From Network installation of Microsoft Office 97 on your computer. During installation, you choose to keep shared files on the server.

-and-


 * You then perform a Run From Network installation of Microsoft Office 97 SR-1 on your computer. During installation, you choose to store shared files on your local hard disk drive.



WORKAROUND
To work around this problem, use any of the following five methods.

Method 1
Modify the path to point to the shared programs, and then run Setup again.

NOTE: This modification is required only while you are running Setup. You can remove the modification to the path statement after you successfully install the program.

Under Microsoft Windows NT
If you are running Microsoft Windows NT, follow these steps:  First, use Windows Explorer to map a network drive to the location of the shared programs on the server. For example, map drive F to the following location

\\ \ 

where   is the name of the server and   is the name of the share in which the shared programs are stored. On the Start menu, point to Settings and click Control Panel. Double-click the System icon. Click the Environment tab. In the System Variables box, select the Path variable. At the bottom of the window, click after the Value statement for the path.</li> Type a semicolon, and then type the path to the location to the shared programs on the network.

For example, type the following:

f:\msapps\os\system

</li> Click Set.</li> Click OK, and then run Setup for the program you want to install.</li></ol>

Under Microsoft Windows 95
If you are running Microsoft Windows 95, follow these steps: <ol> On the Start menu, click Run. Type sysedit in the Open box.</li> In the Autoexec.bat window, find the "PATH=" statement.</li> Type a semicolon, and then type the path to the location of shared programs on the network.

For example, type the following

\\ \msoffice\msapps\os\system

where   is the name of the server.</li> On the File menu, click Save.</li> On the File menu, click Exit.</li> Restart the computer.</li> Run Setup for the program you want to install.</li></ol>

Method 2
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To prevent this problem from occurring, follow these steps: <ol> On the Start menu, click Run. In the Open box, type regedit, and then click OK.</li>  In the Registry window, click the plus sign (+) to the left of the following keys, in order: <pre class="fixed_text">     HKEY_LOCAL_MACHINE SOFTWARE Microsoft Shared Tools Then, click the yellow folder to the left of "Vba332.dll". The text in the status bar should be the following: <pre class="fixed_text">     My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\ Vba332.dll </li> On the Edit menu, click Delete, and then click Yes to delete the key.</li> On the Registry menu, click Exit.</li> Run the Setup program.</li></ol>

If the error message appears again, follow these steps: <ol> <li> Using Windows Explorer, manually create the following folders on your hard disk (usually, drive C): <pre class="fixed_text">     Program Files\Common Files Program Files\Common Files\Microsoft Shared Program Files\Common Files\Microsoft Shared\VBA NOTE: The Program Files folder should already exist on your hard disk. If it does not, create it before you create the folders listed in this step. </li> <li> Copy the following files from the OS\System folder on your Microsoft Office 97 compact disc: <pre class="fixed_text">     Vba332.dll     (file size 1,596,688 bytes, version 3.0.6908, 11/96) Vbe.dll       (file size 745,232 bytes, 11/96) Paste the files in the Program Files\Common Files\Microsoft Shared\VBA folder on your hard disk. </li> <li>In the Windows Explorer, go to the Windows\System folder on your hard disk. <ol style="list-style-type: lower-alpha;"> <li>If the file Oleaut32.dll is present, select it. Right-click the file, and click Rename on the shortcut menu. Type Oleaut32.old and press ENTER.</li> <li>If the Ole32.dll file is present, select it. Right-click the file, and click Rename on the shortcut menu. Type Ole32.old and press ENTER.</li></ol> </li> <li> Copy the following file from the OS\System folder on your Microsoft Office 97 compact disc: <pre class="fixed_text">     Oleaut32.dll   (file size 491,792 bytes, version 2.20.4054,                     11/96) Paste the file in the Windows\System folder on your hard disk. </li> <li> Copy the following file from the Office\WMS\Common folder on your Microsoft Office 97 compact disc: <pre class="fixed_text">     Ole32.dll      (file size 558,704 bytes, version 2.1, 11/96) Paste the file in the Windows\System folder on your hard disk.

NOTE: If any of the four files mentioned in steps 2-5 are in use, you may receive an error message when you attempt to copy them to your hard disk. If this occurs, you may need to restart your computer in MS-DOS mode, copy the files to your hard disk, and then restart your computer again. </li> <li>Run Microsoft Office 97 Setup.</li></ol>

NOTE: After replacing the old copies of Oleaut32.dll and Ole32.dll with copies from the Microsoft Office 97 compact disc and running Microsoft Office 97 Setup, other programs that use these files may not work correctly. In this event, you may need to reinstall the other programs. Or, you may be able to rename the .old files in the Windows\System folder to their original file names.

Method 3
In some cases, you may be able to correct this problem by using the Windows Explorer to copy the file Vbeext1.olb into the following folder: <pre class="fixed_text">  C:\Program Files\Common Files\Microsoft Shared\Vba If this folder does not exist on your hard disk drive, manually create it using the Windows Explorer.

You can find Vbeext1.olb in the OS\System folder of your administrative installation of Microsoft Office 97, or in the OS\System folder of your Microsoft Office 97 compact disc.

After you have copied the Vbeext1.olb file into the Vba folder, re-run Microsoft Office 97 Setup.

Method 4
If the following folder exists on your hard disk drive <pre class="fixed_text">  C:\Windows\Temp\Vbe use the Windows Explorer to delete or rename the folder. Then, re-run Microsoft Office 97 Setup.

Method 5
If none of the above solutions resolve the problem, try following the steps in the following article in the Microsoft Knowledge Base:

158658 OFF97: How to Completely Remove Microsoft Office 97

Note that a utility that automates the process of removing Office 97 is available. The following file is available for download from the Microsoft Download Center:

Eraser97.exe

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Additional query words: 8.00 97 OFF97 Vbe sr-1 sr1 prj98 can t VBA332 dll

Keywords: kbdownload kberrmsg kbfaq kbprb kbusage KB162627

-

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

© Microsoft Corporation. All rights reserved.