I used advanced filter to create a filtered list of unique values in my 3rd column. Now I want to step through them to read them all into an array.
My problem is that is starts off on row 1, skipps row 2 & 3 and continues from 4 correctly...
Please explain this "Area" thing to me:
My problem is that is starts off on row 1, skipps row 2 & 3 and continues from 4 correctly...
Please explain this "Area" thing to me:
Code:
Sub Macro5()
Dim QCNameArray(1 To 50) As String
Columns(3).AdvancedFilter Action:=xlFilterInPlace, Unique:=True
Counter = 1
Do While ActiveCell.Value <> ""
ActiveSheet.Columns(3).SpecialCells(xlCellTypeVisible).Areas(Counter).Rows(1).Select
QCNameArray(Counter) = ActiveCell.Value
Counter = Counter + 1
Loop
ActiveSheet.ShowAllData
End Sub