I can't get my error handeling to work. It breaks on the following line. Any Ideas?
On Error GoTo Err1 ' Breaks here "Compile error: Label not Defined"
Range("A10").Select
Range("Master").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range("Group"), CopyToRange:=Range("A1:K1"), Unique:=False
On Error GoTo 0
End Sub
Err1:
Sheets("NYFilter").Rows("1:1").ClearContents
Sheets("Prior-NYFilter").Rows("1:1").Copy
Sheets("NYFilter").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Resume
End Sub
On Error GoTo Err1 ' Breaks here "Compile error: Label not Defined"
Range("A10").Select
Range("Master").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range("Group"), CopyToRange:=Range("A1:K1"), Unique:=False
On Error GoTo 0
End Sub
Err1:
Sheets("NYFilter").Rows("1:1").ClearContents
Sheets("Prior-NYFilter").Rows("1:1").Copy
Sheets("NYFilter").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Resume
End Sub