I would like to know if there is a simple way to store all selected item from a ListBox into an array.
I tried to do this with the following code, but it didn't work has excepted.
FilterTest() return me nothing.
Private Sub ListBox1_Change()
Dim FilterTest() As Variant
Dim myMsg As String
Dim i As Long
Dim Count As Integer
Count = 1
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) Then
ReDim Preserve FilterTest(Count)
FilterTest(Count) = ListBox1.List(i)
Count = Count + 1
End If
Next i
End Sub