Turning off 'On Error Resume'

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.
 
D

Dirk Goldgar

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top