_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
Remarks
For custom controls, use the OnAction property to specify the procedure to be run.