Knowledge Base - Technical Articles


Technical Article   Problem:  ArcMap Visual Basic Editor macro is disabled

Article ID: 17844
Bug Id: N/A
Software:  ArcGIS - ArcEditor 8.1, 8.1.2, 8.2, 8.3, 9.3, 9.3.1 ArcGIS - ArcInfo 8.1, 8.1.2, 8.2, 8.3, 9.3, 9.3.1 ArcGIS - ArcView 8.1, 8.1.2, 8.2, 8.3, 9.3, 9.3.1
Platforms:  Windows NT 4.0, 2000, XP, 2003Server, Vista

Description

Visual Basic Editor cannot be started from ArcMap. When using the Customize, Commands, and UIControls option, ArcMap crashes or the Visual Basic Editor option is grayed out.

Cause

An incomplete or incorrect version of Visual Basic for Applications (VBA) is installed.

Solution or Workaround

- At 8.x VBA can be installed by running the ArcMap_vba.msi under the \Support\Vba6 folder found on the install CD.

- At 9.3 and 9.3.1, VBA can be installed by running the VBAOF11.msi and VBAOF11I.msi under the VBA and 1033 folders found on the install CD.

If installing the VBA from the installation media does not seem to correct this issue, it is recommended that a repair is run on the ArcGIS Desktop install.

To run a repair:
Navigate to Start > Settings > Control Panel > Add or Remove Programs. Select ArcGIS Desktop and click the Change button. When prompted, select the Repair option.



Created: 4/9/2001
Last Modified: 6/17/2010

Article Rating: (6)
If you would like to post a comment, please login

Comments

By Anonymous - 03/10/2011 4:36 AM

The article needs to be updated.

Could not figure this out until I read this - perfect fix for 9.3.

Rating:

By Anonymous - 09/29/2010 9:57 AM

The article needs to be updated.

Running the 2 .msi files fixed 9.3.1 install when the VB Editor was grayed out.

Rating:

By Anonymous - 09/10/2010 12:30 PM

The article needs to be updated.

This worked perfect for 9.3, but now I'm having the same problem with ArcGIS 10 and can't find the same .msi files. What is the fix for ArcGIS 10 if there is one?

Rating:

By Anonymous - 07/29/2010 10:42 AM

The article needs to be updated.

It fixed an issue I was trying to figure out the problem to for 3 days, thanks!

Rating:

By Anonymous - 07/15/2010 12:30 PM

The article needs to be updated.

Rating:

By Anonymous - 08/21/2009 9:20 AM

The article needs to be updated.

I had the same issue on ArcMap 9.3.1. This is how I enabled it: To fix the issue For ArcMap 9.3.1: Browse to Install VBAOF11.msi Browse to Install VBAOF11I.msi That should fix the Macros & Visual Basic Editor for ArcMap 9.3.

Rating:

By Anonymous - 06/24/2005 4:07 AM

I would appreciate an update of this article to version 9, and evnt beyond, as I am having the same problem there, but without that .msi file being available on the disks.