ListCount

This property returns the number of items in the list portion of a control.

Syntax

object.ListCount

Parameters

object
Object expression that evaluates to a ListBox or ComboBox control.

Remarks

If no item is selected, the ListIndex property value is –1. The first item in the list is ListIndex = 0, and ListCount is always one more than the largest ListIndex value.