E
EAB1977
I'm trying to get a name to pop up in a message box from my listbox
that I select, and I cannot for the life of me get the code below to
work!!!
Private Sub lstCloseoutAttendees_Click()
Dim ctl As Control, intCurrentRow As Integer
Set ctl = Me.lstCloseoutAttendees 'Listbox
For intCurrentRow = 0 To ctl.ListCount - 1
If ctl.Selected(intCurrentRow) Then
MsgBox ctlList.Column(2, intCurrentRow)
End If
Next intCurrentRow
End Sub
that I select, and I cannot for the life of me get the code below to
work!!!
Private Sub lstCloseoutAttendees_Click()
Dim ctl As Control, intCurrentRow As Integer
Set ctl = Me.lstCloseoutAttendees 'Listbox
For intCurrentRow = 0 To ctl.ListCount - 1
If ctl.Selected(intCurrentRow) Then
MsgBox ctlList.Column(2, intCurrentRow)
End If
Next intCurrentRow
End Sub