Hi
I recently wrote a procedure that filtered a worksheet with this line of codewhere Arr is an array of the contents of a range of cells and the filter worked just as requested.![]()
ActiveSheet.Range("E1:E" & LR).AutoFilter Field:=1, Criteria1:=Arr, Operator:=xlFilterValues
Now, on another project, I wanted to do the same but with this twist...I wanted to filter the range for everything EXCEPT the contents of the array and attempted to use this code.![]()
ActiveSheet.Range("E1:E" & LR).AutoFilter Field:=1, Criteria1:<>Arr, Operator:=xlFilterValues
I get a Compile Error "Expected: Named Parameter". So, this doesn't work. Is there a way to use an array to all filter data NOT included in the array?
As always, your help is greatly appreciated.
John
Bookmarks