CommandBarComboBox Object
Note
|
|---|
| The use of CommandBars in some Microsoft Office applications has been superseded by the new Ribbon user interface. For more information, search help for the keyword "Ribbon." |
Remarks
Use Controls(index), whereis the index number of the control, to return a CommandBarComboBoxobject. Note that the Typeproperty of the control must be msoControlEdit, msoControlDropdown, msoControlComboBox, msoControlButtonDropdown, msoControlSplitDropdown, msoControlOCXDropdown, msoControlGraphicCombo, or msoControlGraphicDropdown.
Example
The following example adds two items to the second control on the command bar named Custom, and then it adjusts the size of the control.
| Visual Basic for Applications |
|---|
|
You can also use the FindControl method to return a CommandBarComboBox object. The following example searches all command bars for a visible CommandBarComboBox object whose tag is "sheet assignments."
| Visual Basic for Applications |
|---|
|
See also:
| index |
Note