I currently use the following code to filter for 2 criteria that are required from a range:
Sub FilterRange()
Sheets("Call Centres").Select
Selection.AutoFilter Field:=2, Criteria1:=Range("ICC1").Value, _
Operator:=xlOr, Criteria2:=Range("ICC2").Value
End Sub
Where the criteria required are entered in the ranges ICC1 and ICC2
However, I now need to filter for more than 2 criteria (up to a maximum of 10)
As soon as I try to filter for a third criteria I get a runtime error.
Is it possible to filter for more than 2 criteria, and if so, how?!?!
Please help!
Sub FilterRange()
Sheets("Call Centres").Select
Selection.AutoFilter Field:=2, Criteria1:=Range("ICC1").Value, _
Operator:=xlOr, Criteria2:=Range("ICC2").Value
End Sub
Where the criteria required are entered in the ranges ICC1 and ICC2
However, I now need to filter for more than 2 criteria (up to a maximum of 10)
As soon as I try to filter for a third criteria I get a runtime error.
Is it possible to filter for more than 2 criteria, and if so, how?!?!
Please help!