George-Bowyer
Registered User.
- Local time
- Today, 05:08
- Joined
- Dec 21, 2012
- Messages
- 178
Hello,
I've been using this code to uncheck all items in a list box for ages (can't remember where I got it from - somewhere here, probably) - and it works fine.
I just tried using it to check all of the boxes, which I assumed would just require changing "False" to "True", but bizarrely, the button does nothing.
Can anyone please explain this?
Thanks,
George
I've been using this code to uncheck all items in a list box for ages (can't remember where I got it from - somewhere here, probably) - and it works fine.
Code:
Dim varItm As Variant
With lstWhatever
For Each varItm In .ItemsSelected
.Selected(varItm) = False
Next varItm
End With
I just tried using it to check all of the boxes, which I assumed would just require changing "False" to "True", but bizarrely, the button does nothing.
Can anyone please explain this?
Thanks,
George
Last edited: