RESUME without error

You tried to execute a Resume statement outside of an error-handling routine. You cannot resume execution if an error has not occurred.

Insert the Resume statement within an error-handling routine.