I have put a checkbox on top of a listbox with rows of data in it. What I want to happen is when I check the checkbox all the rows in the listbox get selected. Right now I get no errors but nothing happens.
names: listbox - lstARlstbox checkbox - chkPosFilter
Any help would be appreciated
This is the current code:
[] code
Private Sub chkPOSFilter_Click()
Dim i
For i = 0 To lstARLstbox.ListCount - 1
lstARLstbox.Selected(i) = ChkALL
Next i
End Sub
names: listbox - lstARlstbox checkbox - chkPosFilter
Any help would be appreciated
This is the current code:
[] code
Private Sub chkPOSFilter_Click()
Dim i
For i = 0 To lstARLstbox.ListCount - 1
lstARLstbox.Selected(i) = ChkALL
Next i
End Sub