Represents a combo box control on a command bar.

Methods

Name Description
AddItem Adds a list item to the specified command bar combo box control . The combo box control must be a custom control and must be a drop-down list box or a combo box.
Clear Removes all list items from a command bar combo box control (a drop-down list box or a combo box).
Copy Copies a command bar combo box control to an existing command bar.
Delete Deletes CommandBarCombo control object from its collection.
Execute Runs the procedure or built-in command assigned to the specified CommandBarComboBox control.
Move Moves the specified control to an existing command bar.
RemoveItem Removes an item from a CommandBarComboBox control.
Reset Resets a built-in command bar to its default configuration, or resets a built-in CommandBarComboBox control to its original function and face.
SetFocus Moves the keyboard focus to the specified CommandBarComboBox control. If the control is disabled or isn't visible, this method will fail.

Properties

Name Description
Application Gets an Application object that represents the container application for the CommandBarComboBox object (you can use this property with an Automation object to return that object's container application). Read-only.
BeginGroup Gets True if the specified command bar control appears at the beginning of a group of controls on the command bar. Read/write.
BuiltIn Gets True if the specified command bar control is a built-in control of the container application. Returns False if it's a custom control, or if it's a built-in control whose OnAction property has been set. Read-only.
Caption Gets or sets the caption text for a command bar control. Read/write.
Creator Gets a 32-bit integer that indicates the application in which the CommandBarComboBox object was created. Read-only.
DescriptionText Gets or sets the description for a command bar combo box control. Read/write.
DropDownLines Gets or sets the number of lines in a command bar combo box control. The combo box control must be a custom control and it must be a drop-down list box or a combo box. Read/write.
DropDownWidth Gets or sets the width (in pixels) of the list for the specified command bar combo box control. Read/write.
Enabled Gets or sets a Boolean value that specifies whether the CommandBarComboBox is enabled. Read/write.
Height Gets or sets the height of a CommandBarComboBox control. Read/write.
HelpContextId Gets or sets the Help context Id number for the Help topic attached to the CommandBarComboBox control. Read/write.
HelpFile Gets or sets the file name for the Help topic attached to the CommandBarComboBox control. Read/write.
Id Gets the ID for a built-in CommandBarComboBox control. Read-only.
Index Gets a Long representing the index number for a CommandBarComboBox object in the collection. Read-only.
IsPriorityDropped Gets True if the control is currently dropped from the menu or toolbar based on usage statistics and layout space. (Note that this is not the same as the control's visibility, as set by the Visible property). Read-only.
Left Gets the horizontal position of the CommandBarComboBox control (in pixels) relative to the left edge of the screen. Returns the distance from the left side of the docking area. Read-only.
List Gets or sets an item in the CommandBarComboBox control. Read/write.
ListCount Gets the number of list items in a CommandBarComboBox control. Read-only.
ListHeaderCount Gets or sets the number of list items in a CommandBarComboBox control that appears above the separator line. Read/write.
ListIndex Gets or sets the index number of the selected item in the list portion of the CommandBarComboBox control. If nothing is selected in the list, this property returns zero. Read/write.
OLEUsage Gets or sets the OLE client and OLE server roles in which a CommandBarComboBox control will be used when two Microsoft Office applications are merged. Read/write.
OnAction Gets or sets the name of a Visual Basic procedure that will run when the user clicks or changes the value of a CommandBarComboBox control. Read/write.
Parameter Gets or sets a string that an application can use to execute a command from a CommandBarComboBox control. Read/write.
Parent Gets the Parent object for the CommandBarComboBox object. Read-only.
Priority Gets or sets the priority of a CommandBarComboBox control. A control's priority determines whether the control can be dropped from a docked command bar if the command bar controls can't fit in a single row. Read/write.
Style Gets or sets the way a CommandBarComboBox control is displayed. Can be either of the following MsoComboStyle constants: msoComboLabel or msoComboNormal. Read/write.
Tag Gets or sets information about the CommandBarComboBox control, such as data that can be used as an argument in procedures, or information that identifies the control. Read/write.
Text Gets or sets the text in the display or edit portion of the CommandBarComboBox control. Read/write.
TooltipText Gets or sets the text displayed in a CommandBarComboBox's ScreenTip. Read/write.
Top Gets the distance (in pixels) from the top edge of the specified CommandBarComboBox control to the top edge of the screen. Read-only.
Type Gets the type of CommandBarComboBox control. Read-only.
Visible Gets or sets the Visible property for the CommandBarComboBox control. True if the CommandBarControl is visible. Read/write.
Width Gets or sets the width (in pixels) of the specified CommandBarComboBox control. Read/write.

Events

Name Description
Change Occurs when the end user changes the selection in a CommandBar combo box.

ofv