ListCount Property

Applies To

DropDown Object, ListBox Object.

Description

Returns the number of entries in a list box or drop-down list box. Returns zero if there are no entries in the list. Read-only.

See Also

List Property.

Example

This example displays the number of entries in list box one on Dialog1.


cEntries = DialogSheets("Dialog1").ListBoxes(1).ListCount
MsgBox "There are " & cEntries & " entries in list box one."