OlkListBox.AddItem method (Outlook)

Adds an item to the list, optionally specifying an index for the new item to appear in the list.


expression.AddItem (ItemText, Index)

expression A variable that represents an OlkListBox object.


Name Required/Optional Data type Description
ItemText Required String Value to be added to the list in the list box control.
Index Optional Long A 0-based value that specifies the order of the new item in the list.


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

OlkListBox Object

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.