
On Error doesn't catch second error in code
I think you need to do an Err.Clear after you've handled the error, then the
normal On Error code should kick in again.
Quote:
> I have set up a On Error GoTo statement and the error
> handling code (at end of code). The On Error GoTo
> statement is between the Dim statements and normal code.
> It works fine if the error occurs only once during the
> running of the macro. However, the second time the error
> occurs, the macro fails and the error is not handled by
> the error handling code. Does the On Error GoTo statement
> have to be within the code loop to reset? Is there a reset
> command? Thanks