CommandBarOptions.ConnectHandler

This function connects the passed in Handler to the CommandBarItem. The CommandID is passed to the Handler when the command is executed.

Syntax Parameters Return Value
Sub CommandBarOptions.ConnectHandler( _
    CommandID As Integer, _
    Item As CommandBarItem, _
    Handler As Variant)
  • CommandID [in]

Type: Integer

  • Item [in]

Type: CommandBarItem

  • Handler [in]

Type: Variant

This function does not return a value.