List Box on worksheet
Same as when located on a Userform
Private Sub CommandButton1_Click()
With Worksheets("sheet1")
For i = 0 To .ListBox1.ListCount - 1
If .ListBox1.Selected(i) Then
sStr = sStr & .ListBox1.List(i, 0) & vbNewLine
End If
Next
End With
MsgBox sStr
End Sub
--
Regards,
Tom Ogilvy
Stuart wrote in message
...
Working with a List Box that is situated on a worksheet, (NOT in a Dialog or
UserForm)
how do I get the entries selected when on MultiSelect?
|