XL: Error Handler Ignored with Break On All Errors Selected

ID: Q152402

The information in this article applies to:

SUMMARY

When you use error handlers in Microsoft Visual Basic for Applications code, the error handlers are ignored if you have the Break On All Errors option selected in the Options dialog box. Instead of running the error handler as expected, the code stops and the corresponding error message appears, just as if there were no error handler.

MORE INFORMATION

Microsoft Excel 5.0 and 7.0

To turn off the Break On All Errors option in Microsoft Excel versions 5.0 and 7.0, follow these steps:

1. On the Tools menu, click Options.

2. In the Options dialog box, click the Module General tab.

3. Click to clear the Break On All Errors check box.

4. Click OK.

Microsoft Excel 97 and Microsoft Excel 98

To turn off the Break On All Errors option in Microsoft Excel 97 and Microsoft Excel 98, follow these steps:

1. On the Tools menu, point to Macro, and then click Visual Basic Editor.

2. On the Tools menu, click Options or Preferences. Click the General tab.

3. Click Break On Unhandled Errors.

4. Click OK.

Additional query words: 5.00 5.00a 5.00c 7.00 7.00a XL98 XL97 XL7 XL5 error

Keywords          : kbprg kbdta PgmOthr KbVBA xlwin 
Version           : WINDOWS:5.0,5.0c,7.0,7.0a,97; MACINTOSH:5.0,98
Platform          : MACINTOSH WINDOWS
Issue type        : kbhowto

Last Reviewed: January 2, 1999