I'm getting selected items from listbox and populating an array with them. I want to get all of listbox items if nothing is selected and populate the same array with them. What do I need to add to my code? Thanks.
For i = 0 To Me.Client_List.ListCount - 1
If Me.Client_List.Selected(i) Then
c = c + 1
ReDim Preserve Clients(1 To c) As Integer
Clients(c) = Me.Client_List.ItemData(i)