Extending product function with VBA > The System Architect object model > Object model classes > Application class > Application class: Methods > InsertMacroItemInMenu
  
InsertMacroItemInMenu
Creates a menu item on the System Architect menu that refers to an existing macro subroutine.
Syntax
Application Object.InsertMacroItemInMenu MacroName, MacroItemCaption, InMenuTitleCaption[, BeforeMenuItemCaption]
Parameters
Application Object
Use: Required
Data type: Object
Any instantiated Application class
MacroName
Use: Required
Data type: String
Any valid macro project
Syntax: "Project Name, Module Name, Subroutine Name()"
MacroItemCaption
Use: Required
Data type: String
Name of macro item that will be inserted in an System Architect menu
InMenuTitleCaption
Use: Required
Data type: String
Name of existing System Architect popup menu where macro item is being placed
BeforeMenuItemCaption
Use: Optional
Data type: String
Name of existing System Architect menu item the macro item is being placed before. If it is not specified, the macro is placed at the bottom of the menu.
See also
Application class: Methods