Turning off 'On Error Resume'

  • Thread starter Thread starter David C. Holley
  • Start date Start date
D

David C. Holley

I should know this, but obviously I don't...

If I envoke error handling using On Error [Whatever: Goto, Resume, etc.]
is there a statement that I can execute which will negate the On Error
command? Once the section of code that the On Error handles is finished,
I want to change how errors are handled - for now, to break on an error.
 
David C. Holley said:
I should know this, but obviously I don't...

If I envoke error handling using On Error [Whatever: Goto, Resume,
etc.] is there a statement that I can execute which will negate the
On Error command? Once the section of code that the On Error handles
is finished, I want to change how errors are handled - for now, to
break on an error.

"On Error GoTo 0" restores the default error-handling; "On Error Resume
Next" establishes in-line error handling (or "error ignoring", if you
are so inclined).
 
Back
Top