So far, I've tried checking for the listbox.listindex value, but this is zero if eitehr one or no options are selected.
I've tried looping around with some code like this:
which I found searching here. But, if there are no selected items it falls out of the sub and what I need it to do is tell the user and then take them back to the form to fill something in.
Help anyone?
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen
I've tried looping around with some code like this:
Code:
Dim i As Integer
dim bSelected As Boolean
bSelected = False
For i = 0 To ListBox1.ListIndex
If ListBox1.Selected(i) Then
bSelected = True
Exit For
End If
Next
If Not bSelected Then
MsgBox "no selection"
End If
Help anyone?
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen