CommandBar.InsertMacroButton

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

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

The position of where to place the macro.

Type: Integer

  • MacroName [in]

Type: String

  • Caption [in,optional]

Type: String

CommandBarItem