Hi everyone!
I am trying to write some code to filter a table A20 to F10000, table header is on row 20
I am trying to do the following: I have the the criteria in cell A19 , and the column witch needs to be filtered in cell E17
So for example in E17 I have "A20" and in A19 I have the word "clean" The expected result is filter cell A20 (refered to in cell E17), by the word "Clean", from cell A19.
Any sugestion on how to do this ?
This was my initial approach , but it dose not work.
Any help is appreciated
I am trying to write some code to filter a table A20 to F10000, table header is on row 20
I am trying to do the following: I have the the criteria in cell A19 , and the column witch needs to be filtered in cell E17
So for example in E17 I have "A20" and in A19 I have the word "clean" The expected result is filter cell A20 (refered to in cell E17), by the word "Clean", from cell A19.
Any sugestion on how to do this ?
This was my initial approach , but it dose not work.
Code:
Sub Filter_Stuff()
With Sheets("pivot")
.Range("A20:F1000").AutoFilter Field:=.Cells("E17").Value, Criteria1:="*" & Cells("A19") & "*"
', Field:=2, Criteria1:=.Range("H6").Value
End With
End Sub
Any help is appreciated