| Platform: | Visual Basic For Applications |
| Task: | Loop through selected items in a listbox |
| Discussion: | Here is how to loop through the selected items an a listbox. |
| Example: | Dim i As Integer
For i = 0 To Me.ItemsList.ListCount - 1
If Me.ItemsList.Selected(i) = True Then
Debug.Print Me.ItemsList.Column(0, i)
End If
Next i |