laptop and a wrench

Bug

VBA Detected Warning displays if all the VBA code is deleted out of an MXD.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM058642
SubmittedJune 29, 2010
Last ModifiedApril 2, 2025
Applies toNo Product Found
Version found10.0
StatusWill Not Be Addressed

Description

When opening version 9.3.1 or earlier MXDs in ArcGIS Desktop 10 that had VBA code in them, the "VBA Detected" warning appears, even after all VBA code has been deleted from the MXD.

Note:
If Tools > Options > Require Variable Declarations was checked on in the VBA Editor, but no code was in the MXD, the "VBA Detected" warning is also returned.

Cause

This is a known issue with ArcGIS Desktop 10.

Workaround



  • In ArcGIS, perform a 'Save-As' on the MXD (File > Save-As > Enter a new name for the MXD).

    Note:
    The "VBA Detected" warning will pop-up once when performing the 'Save-As', but will not appear when re-opening the MXD.

  • Optionally, the "VBA Detected" warning can be avoided permanently by clicking the 'Never show this warning again' check box.

    Warning:
    If there is a need to know what other MXDs had VBA in them, do not select the 'Never show this warning again' option.

Steps to Reproduce

Bug ID: NIM058642

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options