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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top