CommandBarButtons.Insert
Syntax:
Parameters:
<Index> (required)
Position in a collection of buttons where the button will be inserted.
<Name> (optional)
Button name should follow name rules. It is unique within a command bar.
<Type> (optional)
Command bar button type(separator, action, popup).
<Text> (optional)
Button text.
<Action> (optional)
Action that should be performed when user clicks this button. For Separator and Popup button types you do not have to specify an action.
Returned value:
Description:
Availability:
Example:
CP = Controls.CommandBar; NewAction = New Action("MyProcedureInFormModule"); ButtonType = CommandBarButtonType.Action; NewButton = CP.Buttons.Insert(0, "Action1", ButtonType,, NewAction); |