OlkListBox.SetSelected Method (Outlook)
Sets the selected state of an item at the specified location in the list to the given Selected value.
expression A variable that represents an OlkListBox object.
|Index||Required||Long||A zero-based value that specifies the location of an item in the list.|
|Selected||Required||Boolean||True to indicate that the item should be selected, False to indicate that the item should not be selected.|
If Index is outside the range of the allowed values (between zero and ListCount -1), then an out-of-bounds error will be returned.