If the Multiselect property is set to None, you can simply refer to the
listbox by name to get its value (strSelected = Me.MyListbox)
When the MultiSelect property is set to Extended or Simple, you can use the
list box's Selected property or ItemsSelected collection to determine the
items that are selected. The value of the list box control will always be
Null, even if only one item has been selected
Dim intCurrentRow As Integer
For intCurrentRow = 0 To Me.MyListbox.Listcount - 1
If Me.MyListbox.Selected(intCurrentRow) Then
Debug.Print Me.MyListbox.Column(0, intCurrentRow)
End If
Next intCurrentRow
or
Dim varItm As Variant
For Each varItm In Me.MyListbox.ItemsSelected
Debug.Print ctl.ItemData(varItm)
Next varItm