I can autofilter first column with an array with no problem. Trying to autofilter with two columns, in a table, using same array values. Same values in different columns are never on the same row. Tried searching around for a solution.
working if when used separately
ws.ListObjects("tblA").Range.AutoFilter Field:=2, Criteria1:=arr, Operator:=xlFilterValues
ws.ListObjects("tblA").Range.AutoFilter Field:=5, Criteria1:=arr, Operator:=xlFilterValues
Below doesn't work for me.
ws.ListObjects("tblA").Range.AutoFilter Field:=2, Criteria1:=arr, Operator:=xlOr, _
ws.ListObjects("tblA").Range.AutoFilter Field:=5, Criteria1:=arr, Operator:=xlFilterValues
working if when used separately
ws.ListObjects("tblA").Range.AutoFilter Field:=2, Criteria1:=arr, Operator:=xlFilterValues
ws.ListObjects("tblA").Range.AutoFilter Field:=5, Criteria1:=arr, Operator:=xlFilterValues
Below doesn't work for me.
ws.ListObjects("tblA").Range.AutoFilter Field:=2, Criteria1:=arr, Operator:=xlOr, _
ws.ListObjects("tblA").Range.AutoFilter Field:=5, Criteria1:=arr, Operator:=xlFilterValues