What happens if the label specified in `On Error Goto` doesn't exist?

Question

Grade: Education Subject: Support
What happens if the label specified in `On Error Goto` doesn't exist?
Asked by:
69 Viewed 69 Answers

Answer (69)

Best Answer
(241)
If the label specified in `On Error Goto` is not found, VBA will raise a runtime error, typically 'Compile error: Label not defined'. This will halt execution and require you to correct the label name or remove the `On Error Goto` statement.