Visio5: A Visual Basic for Applications Error 21 Occurs When You Install Visio 5.0 on Windows NT 4.0 (254485)
The information in this article applies to:
- Microsoft Visio Standard 5.0
- Microsoft Visio Professional 5.0
- Microsoft Visio Technical 5.0
- Microsoft Visio Enterprise 5.0
- the operating system: Microsoft Windows NT
This article was previously published under Q254485 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 try to install Visio 5.0 on a computer running Microsoft Windows NT 4.0, you may experience a Visual Basic for Applications error 21 during the Visual Basic for Applications-initialization stage of the Visio installation.
RESOLUTION
To install Visual Basic for Applications properly, the Setup program needs to add or modify certain registry entries. If these entries do not have the correct ownership or permissions, you may receive the Visual Basic for Applications Error 21. Giving yourself ownership of and permissions for these entries solves the error.
NOTE: To change ownership and permissions in the Registry, you need to log on to Windows NT as the administrator, and then run the Windows NT Regedt32 program to edit the entries (or keys). 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.
Solving this error involves finding the registry keys that you need to modify, and then giving yourself ownership and permissions.
To find the proper keys in the registry:- Restart Windows NT and log on to your local domain as the
administrator.
- Click Start, click Run, type
Regedt32.exe, and then click OK.
Registry Editor starts. - In Registry Editor, click the title bar of the
HKEY_LOCAL_MACHINE window to bring it to the front.
- In the HKEY_LOCAL_MACHINE window, double-click the SOFTWARE
folder to open it and display its subfolders.
- Under SOFTWARE, double-click the Microsoft folder,
and then the Shared Tools folder.
You should now see the list of subfolders under
SOFTWARE\Microsoft\Shared Tools. - To find the keys, scroll down to the folders (keys) that have
names that start with "veen."
After you find the keys, you can give yourself ownership and assign yourself permissions.
To take ownership of the keys and assign permissions:NOTE: Follow the steps in this procedure for each key with a name that starts with "veen," as well as its Clients subkey. The number of keys that start with "veen" varies on each system.
- If the key is unavailable (dimmed), select it, and then click
Owner on the Security menu. The following message
appears:
You do not have permission to view the current owner but you may have permission to change it. Do you want to try overwriting the current owner?
- Click Yes in the message box.
- In the next message box that appears, click Take Ownership.
- On the Security menu, click Permissions, and
then, in the Registry Key Permissions dialog box, click
Add to add the selected key.
- Under Type Of Access, select Full Control, and then
click OK.
After you follow these steps for each key, reinstall Visio 5.0 to ensure that Visual Basic for Applications is registered properly in the registry. When you reinstall Visio, the Visual Basic for Applications Error 21 should no longer occur.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode KB254485 |
---|
|