property Items.SelectCount as Long

Counts the number of items that are selected in the control.

TypeDescription
Long A long expression that identifies the number of selected items.

The SelectCount property counts the selected items in the control. The SingleSel property retrieves or sets a value that indicates whether the control supports single or multiple selection. If the control contains a selected item, the SelectCount property is 1. If there is no selected items, the SelectCount property is 0. Use the SelectedItem property to retrieve the handle of the selected item. Use the Value property to select a value in a single column control. The SelectableItem property specifies whether the user can select an item. Use the SelectItem or Select property to select an item.