OlkComboBox.AddItem method (Outlook)
Adds an item to the list, optionally specifying an index for the new item to appear in the list.
Syntax
expression.AddItem (ItemText, Index)
expression A variable that represents an OlkComboBox object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
ItemText | Required | String | Value to be added to the list in the combo box. |
Index | Optional | Long | A 0-based value that specifies the order of the new item in the list. |
Remarks
If the value of Index is equal to or larger than the number of elements in the list, the new item will be added to the end of the list.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.