So the macro is designed to filter a list based on what the user enters, as part of this macro it also resets the sheet to show all data so multiple filters don't mess each other up. essentially I'd like it to skip the "showalldata" portion if the sheet contains no filters. as it currently returns an error, and id rather set it up to skip it if possible then attach another macro and instructing the user to use it if the first macro produces the error. Thoughts???? thanks in advance for any help.
the macro is as follows: the and section causing the error bolded;
Sub CopypasteFilterroute()
'
' CopypasteFilter Macro
'
'
Dim filter_value As String
filter_value = Range("C3").Value
Range("C3").Select
Selection.Copy
Sheets("Sales Data").Select
Range("Table1[[#Headers],[Zone Code]:[Channel]]").Select
ActiveSheet.ShowAllData
ActiveSheet.ListObjects("Table1").Range.AutoFilter Field:=3, Criteria1:= _
filter_value
Bookmarks