I am trying to do a filter where either I select records where field 18 equals the variable Ans and field 22 equals Ans4 OR I want to select records where field 30 equals the text "Other"
and my error message is wrong number of arguments or invalid property assignment (runtime error 450). Suggesions?
Code:
ActiveSheet.ListObjects("Table1").Range.AutoFilter Field:=18, Criteria1:="=" & Ans, Operator:=xlAnd, Field:=22, Criteria2:="=" & Ans4, Operator:=xlOr, Field:=30, Criteria1:="Other"
and my error message is wrong number of arguments or invalid property assignment (runtime error 450). Suggesions?