Hi all,
I know that in this case I can't use the VALUE property of the listbox, and I have tried to use the code I would have used for the 'ALL' button I have on my form on a USERFORM_OPEN() sub, but that doesn't seem to work.
Sadly, neither will it work in the module that opens the form when the button is clicked.
Any ideas?
The code I use to select all when the 'ALL' button is pressed follows:
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen
I know that in this case I can't use the VALUE property of the listbox, and I have tried to use the code I would have used for the 'ALL' button I have on my form on a USERFORM_OPEN() sub, but that doesn't seem to work.
Sadly, neither will it work in the module that opens the form when the button is clicked.
Any ideas?
The code I use to select all when the 'ALL' button is pressed follows:
Code:
Private Sub ProdAll_Click()
' Select all from list box
Dim r As Integer
For r = 0 To ProdList.ListCount - 1
ProdList.Selected(r) = True
Next r
End Sub
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen