Laura Ford
New Member
- Joined
- Oct 17, 2012
- Messages
- 7
I'm looked, but cannot find solution for the below.
I'm using a macro to filter out select suppliers. I'm fine as long as it is one or two. I need to now exclude all but 3.
This works for 2
ActiveSheet.Range(Selection, Selection.End(xlDown)).AutoFilter Field:=1, Criteria1:="<>66", Operator:=xlAnd, Criteria2:="<>79"
Tried this for 3 or more and it does not work.
ActiveSheet.Range(Selection, Selection.End(xlDown)).AutoFilter Field:=1, Criteria1:="<>66", Operator:=xlAnd, Criteria2:="<>79", Operator:=xlAnd, Criteria3:="<>382"
Thank you,
Laura
I'm using a macro to filter out select suppliers. I'm fine as long as it is one or two. I need to now exclude all but 3.
This works for 2
ActiveSheet.Range(Selection, Selection.End(xlDown)).AutoFilter Field:=1, Criteria1:="<>66", Operator:=xlAnd, Criteria2:="<>79"
Tried this for 3 or more and it does not work.
ActiveSheet.Range(Selection, Selection.End(xlDown)).AutoFilter Field:=1, Criteria1:="<>66", Operator:=xlAnd, Criteria2:="<>79", Operator:=xlAnd, Criteria3:="<>382"
Thank you,
Laura