Ignore error handling for Visual Basic code

Ignore error handling for Visual Basic code

When you add an On Error statement to a Visual Basic procedure, Microsoft Visual Basic automatically branches to an error-handling routine when an error occurs. You may want to ignore a procedure's error-handling code in some circumstances — for example, while you're debugging the procedure.

  1. On the Tools menu, click Options.

  2. Click the General tab.

  3. Under Error Trapping, select Break On All Errors.

    When you check this option, you'll automatically enter Break mode when an error occurs, regardless of error handling.