I have a spreadsheet of " n x n " columns and rows. Each column has x number of filters available to be selected. Now I can extract all available filters for one specific column (say column c1) into a separate sheet so that the new sheet ONLY contains filter A, filter B, etc for column c1 in the first column of the new sheet. How do I read the filters from that new sheet into a array? Please help, thank you.
Sub RestoreFilters()
' autofilter is already set false after redoAutofilter
' w.AutoFilterMode = False
Dim w As Worksheet
Set w = Sheets("Look Back")
' testing restore one of the filters
For i = 1 To UBound(filterArray(), 1)
If Not IsEmpty(filterArray(i, 1)) Then
w.Range("A1").AutoFilter field:=i, Criteria1:=CStr(filterArray(i, 1))
End If
Next i
End Sub
Sub RestoreFilters()
' autofilter is already set false after redoAutofilter
' w.AutoFilterMode = False
Dim w As Worksheet
Set w = Sheets("Look Back")
' testing restore one of the filters
For i = 1 To UBound(filterArray(), 1)
If Not IsEmpty(filterArray(i, 1)) Then
w.Range("A1").AutoFilter field:=i, Criteria1:=CStr(filterArray(i, 1))
End If
Next i
End Sub
Last edited: