Create VBA code with the ODE references 'ESRI Arc automation server' and 'ESRIutil automation server' and run an AML using the Command method.
Dim Arc1 As ESRI.Arc
Dim Results As ESRIutil.Strings
Set Results = New ESRIutil.Strings
Set Arc1 = New ESRI.Arc
Dim ArcStatus As Long
Dim command1 As String
command1 = "&run c:\testdir\demo.aml"
ArcStatus = Arc1.Command(command1, Results)
MsgBox "AML complete."
AML's that switch to other modules such as Tables or Arcedit, require a different VBA coding strategy.
Get help from ArcGIS experts
Download the Esri Support App