PROBLEM

VBA procedures do not appear in Macro dialog box

Last Published: April 25, 2020

Description

In ArcMap, trying to run a VBA procedure using Tools > Macros > Macros, but the procedure does not appear in the list.

Cause

Procedures defined as private can not be run as macros.

Solution or Workaround



Define the procedure as Public.

Code:
Public Sub TestMacro()
MsgBox "This Macro Runs from the dialog"
End Sub

Article ID:000003912

Software:
  • ArcMap 8 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic