Bug: VBA Detected" warning appears even if all VBA code has been deleted from the MXD


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.

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.


This is a known issue with ArcGIS Desktop 10.


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

    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.

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

Related Information