ListIndex Property

Applies To

DrawingObjects Collection, DropDown Object, DropDowns Collection, ListBox Object, ListBoxes Collection.

Description

Returns or sets the index of the currently selected item in a list box or drop-down list box. Read-write.

Remarks

This property cannot be used with multi-select list boxes. Use the Selected property instead.

See Also

MultiSelect Property, Selected Property, Value Property.

Example

This example selects item four in list box one on Dialog1.


DialogSheets("Dialog1").ListBoxes(1).ListIndex = 4