CommandBarComboBox.List Property
Gets or sets an item in the CommandBarComboBox control. Read/write.
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." |
Syntax
expression.List(Index)
expression A variable that represents a CommandBarComboBox object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| Index | Required | Integer | The list item to be set. |
Remarks
Note
|
|---|
| This property is read-only for built-in combo box controls. |
Example
This example checks the fourth list item in the combo box control whose caption is "Stock Data" on the command bar named "Custom." If the item isn't "View News," the example displays a message advising the user that the combo box may be damaged and asks the user to reinstall the application.
| Visual Basic for Applications |
|---|
|
Note