Hi all,
I have been searching and attempting different approaches but have been unsuccessful in this.
I believe I have attached a simplified example file, and have copied and pasted my code and an image of the incorrect result below as well.
My first line for "123456789" works correctly, but the second is not filtering out "0" values while keeping all other unique values.
Any help or suggestions you can offer would be greatly appreciated.
Thanks in advance.
Sub FilterTab()
'
' FilterTab Macro
'
On Error Resume Next
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1").AutoFilter Field:=1, Criteria1:="123456789", Operator:=xlFilterValues
ActiveSheet.Range("$B$1").AutoFilter Field:=2, Criteria1:="<>0", Operator:=xlFilterValues
End Sub
FilterErrorImageOriginal.jpg
Bookmarks