Count of the selected items

J

John

Hi

How can I get a count of the user selected (highlighted) items in a list
which has its multiselect set to Extended?

Thanks

Regards
 
D

Dirk Goldgar

John said:
Hi

How can I get a count of the user selected (highlighted) items in a
list which has its multiselect set to Extended?

For example,

Dim lngSelectedCount As Long

lngSelectedCount = Me!MyListbox.ItemsSelected.Count
 
Top