Code Examples For RunCommand Constants

Start A New Macro

This example is designed to be run from a customized toolbar.

See "Add a custom command that runs a Visual Basic function to a menu" in Help for more information on how to put this behind a menu item.

'***************** Code Start *******************

Function OpenNewMacro()
    DoCmd.RunCommand acCmdNewObjectMacro
End Function

'****************** Code End ********************