Resume Instruction
Syntax:
Resume label
-or-
Resume Next
Group:
Error Handling
Description:
Form 1: Resume execution at label.
Form 2: Resume execution at the next statement.
Once an error has occurred, the error handler can use Resume to continue
execution. The error handler must use Resume or Exit
at the end. Executing an End Sub (or End Function) while in an error handler causes a run-time
error.
Note: This instruction clears the Err and sets
Error$ to null.
Example:
Sub Main
On Error GoTo X
Err.Raise 1
Debug.Print "RESUMING"
Exit Sub
X: Debug.Print "Err=";Err
Resume Next
End Sub