The help file has a very good example for this. Lookup "Listbox Object" in
help while in the VB editor then the ItemsSelected property.
There are two options, depending on whether you want the value from the
Bound Column or the value from a specified column.
1) Value from the Bound Column:
Sub BoundData()
Dim frm As Form, ctl As Control
Dim varItm As Variant
Set frm = Forms!Contacts
Set ctl = frm!Names
For Each varItm In ctl.ItemsSelected
Debug.Print ctl.ItemData(varItm)
Next varItm
End Sub
2) Value from a specified column(s):
Sub AllSelectedData()
Dim frm As Form, ctl As Control
Dim varItm As Variant, intI As Integer
Set frm = Forms!Contacts
Set ctl = frm!Names
For Each varItm In ctl.ItemsSelected
For intI = 0 To ctl.ColumnCount - 1
Debug.Print ctl.Column(intI, varItm)
Next intI
Debug.Print
Next varItm
End Sub
These are the examples from the help file. If there is only one column, then
it will also be the Bound Column and you can use the first example.