i have a listbox and i want to get the amount of items that are checked.
i tried :
vb Code:
Dim i As Integer listID.Selected = i MsgBox (i)
no luck.
Printable View
i have a listbox and i want to get the amount of items that are checked.
i tried :
vb Code:
Dim i As Integer listID.Selected = i MsgBox (i)
no luck.
:confused: Umm, shouldn't that be:
Code:i = listid.selected
Listbox has SelCount property:
Code:Private Sub Command1_Click()
Debug.Print "Number of selected items: " & List1.SelCount
End Sub
maybe but it still wont work.
listid.selected gives " argument not optional"
I had no clue so i just tried a little example.
thanks rhino, so simple (:
No problem.