This documentation is archived and is not being maintained.

CommandBarPopup.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)

'Usage
Dim commandBarPopup1 As CommandBarPopup

Dim returnValue As String
returnValue = commandBarPopup1.OnAction

Dim sampleValue As String
commandBarPopup1.OnAction = sampleValue

string OnAction {get; set;}
public System.String get_OnAction();
public void set_OnAction(System.String);
function get OnAction() : String;
function set OnAction(String);

The container application determines whether the value is a valid macro name.

Notes to Callers:

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: