CommandBarControl.OnAction Property
Returns or sets the name of a procedure that will run when the user clicks or changes the value of a command bar control.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Property OnAction As String
Get
Set
'Usage
Dim instance As CommandBarControl
Dim value As String
value = instance.OnAction
instance.OnAction = value
string OnAction { get; set; }
Property Value
Type: System.String
Remarks
The container application determines whether the value is a valid macro name.