Once you’ve identified the error and dealt with it, you must provide a way to exit the error handler. This is done with the Resume statement. There are three ways to use the Resume statement:

Resume

The above statement will return execution to the statement that caused the error, so that an operation can be completed after the error has been corrected.

Resume Next

Using Resume Next will return execution to the line immediately after the one that caused the error. This allows the program to skip over the offending code, and continue with the rest of the procedure.

Resume line or label

Using this statement will return execution to a specific line or label, allowing you to control where the program should continue after an error has occurred. While slightly different in use, these statements allow you to control how processing will resume after an error has occurred.