Question
What happens if the label specified in `On Error Goto` doesn't exist?
Asked by: USER2178
69 Viewed
69 Answers
Answer (69)
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.