Share via


_CommandBarButton.Execute Method

Runs the procedure or built-in command assigned to the specified command bar control.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Sub Execute
'Usage
Dim instance As _CommandBarButton

instance.Execute()
void Execute()

Implements

CommandBarControl.Execute()

Remarks

For custom controls, use the OnAction property to specify the procedure to be run.

See Also

Reference

_CommandBarButton Interface

_CommandBarButton Members

Execute Overload

Microsoft.Office.Core Namespace