Syntax 

Sub Main()

    ...

End Sub


-or-


Private Sub Main()

    ...

End Sub


Group 

Declaration 


Description 


Each macro must define Sub Main. A macro is a "program". Running a macro starts the Sub Main and continues to execute until the subroutine finishes.