OlkListBox.SetItem Method (Outlook)
Sets the item at the specified location in the list to the specified value.
Version Information
Version Added: Outlook 2007
Syntax
expression .SetItem(Index, Item)
expression A variable that represents an OlkListBox object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Index |
Required |
Long |
A zero-based value that specifies the location of an item in the list. |
Item |
Required |
String |
The value to be used to update the list at the specified location. |
Remarks
If Index is outside the range of the allowed values (between zero and ListCount-1), then an out-of-bounds error will be returned.