M
mp
I want to know which item in a listbox was double clicked on.
This works but doesn't seem like i should have to do it this way
Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Dim index As Integer
With ListBox1
For index = 0 To .ListCount - 1
If .Selected(index) Then
MsgBox index
End If
Next
End With
End Sub
thanks for any tips
mark
This works but doesn't seem like i should have to do it this way
Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Dim index As Integer
With ListBox1
For index = 0 To .ListCount - 1
If .Selected(index) Then
MsgBox index
End If
Next
End With
End Sub
thanks for any tips
mark