Command BarControl Methods

Name Returns Parameters Description

Copy

CommandBar Control

Delete

Bar, Before

Temporary

Execute

Move

CommandBar Control

Bar, Before

Copies a CommandBarControl to an existing command bar.

Deletes the specified CommandBar Control from its collection. Set Temporary to True to delete the control for the current session only — the application will display the control again in the next session.

Runs the procedure or built-in command assigned to the specified CommandBarControl. For custom controls, use the OnAction property to specify the procedure to be run.

Moves the specified CommandBar Control to an existing command bar.

Name

Returns

Parameters

Description

Reset

Resets a built-in CommandBar Control to its default configuration, or resets a built-in CommandBarControl to its original function and face.

SetFocus

Moves the keyboard focus to the specified CommandBarControl. If the control is disabled or isn't visible, this method will fail.

Was this article helpful?

0 0

Post a comment