0

Getting Error 1004 i want to filter on these 3 numbers in my macro. 2 numbers work okay, but when i add criteria 3 it breaks. please help.

   ActiveSheet.Range("$A:$E").AutoFilter Field:=5, Criteria1:= _
    "<>4649566", Operator:=xlAnd, Criteria2:= _
    "<>7900559", Operator:=xlAnd, Criteria3:= _
    "<>8910907", Operator:=xlAnd
2

1 Answer 1

1
 ActiveSheet.Range("$A:$E").AutoFilter Field:=5, Criteria1:= Array("<>4649566","<>7900559", "<>8910907"), Operator:=xlFilterValues
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.