Count in multi listboxes

K

Kamitsukenu

Hi there,

I've got a multi listbox where I can find out the quantity of total options
in the listbox (listcount) and the total selected (itemselected) but how do i
find out the quantity not selected to create an integer?

Thanks
 
D

Douglas J Steele

Wouldn't that be the difference between the total and the number selected?
 
K

Kamitsukenu

Yeah, I'd thought that, but I get the error "Argument not optional". My code
is:

Dim intItemsNotSelected As Integer

intItemsNotSelected = Me.LstSectionNames.ListCount -
Me.LstSectionNames.ItemsSelected
 
K

Kamitsukenu

Okay, okay, I feel a right idiot now. I've just realised that I forgot the
".count" after the itemsSelected.

Sorry about that!
 

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