This method adds a menu bar Item object to the Items collection of a CommandBar control.
items.Add([index], [key], [caption], [style])
Reference to the new Item object.
The following table shows the possible values for the style parameter.
Constant |
Value |
Description |
cbrMenuDefault | 0 | Default. Item is added as a normal menu command. |
cbrMenuSeparator | 1 | Item is added as a menu separator. |