I am creating a filter based on pre-created customizable criteria sets from another 'filter sheet'. However, I want to then sort these filter in another display sheet based on the criteria set.
Example: In Filter sheet I have the sets A, B and C. A containing the companies X,Y,Z; B containing companies Q,Y,Z and C containing only company X.
Now, in the display sheet, I have a drop down list of sets A,B,C. I want to display in this sheet based on the criteria from the set (if I pick set A, then only companies X,Y,Z are shown).
Here is my current code:
With Worksheets("Data Sheet")
With .Range("A2:R" & .Cells(.Rows.Count, "A").End(xlUp).Row)
.AutoFilter Field:=5, criteria1:= Sheet1.Range("C6")
'Filter Field 5 (Column E) displays all companies and I want the criteria to be set based on the previously mentioned criteria sets (A,B,C). "Sheet1.Range("C6")" is the cell with the dropdown list
Thanks in advance!