CommandBarItems.InsertMacroButton

This function adds a button to the command bar referencing the specified global macro.

Syntax Parameters Return Value
Function CommandBarItems.InsertMacroButton( _
    Index As Integer, _
    MacroName As String, _
    Optional Caption As String) As CommandBarItem
  • Index [in]

Type: Integer

  • MacroName [in]

Type: String

  • Caption [in]

Type: String

CommandBarItem