Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Resume Statement
Resumes execution after an error-handling routine is finished.
Syntax
Resume [0]
ResumeNext
Resume line
The Resume statement syntax can have any of the following forms:
Statement | Description |
Resume | If the error occurred in the same procedure as the error handler, execution resumes with the statement that caused the error. If the error occurred in a called procedure, execution resumes at the statement that last called out of the procedure containing the error-handling routine. |
ResumeNext | If the error occurred in the same procedure as the error handler, execution resumes with the statement immediately following the statement that caused the error. If the error occurred in a called procedure, execution resumes with the statement immediately following the statement that last called out of the procedure containing the error-handling routine (or On Error Resume Next statement). |
Resumeline | Execution resumes at line specified in the required lineargument. The line argument is a line label or line number and must be in the same procedure as the error handler. |
Remarks
If you use a Resume statement anywhere except in an error-handling routine, an error occurs.