XL: Error Handler Ignored with Break On All Errors Selected

ID: Q152402


The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for the Macintosh, versions 5.0, 5.0a
  • Microsoft Excel for Windows 95, versions 7.0, 7.0a
  • Microsoft Excel 97 for Windows
  • Microsoft Excel 98 Macintosh Edition


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.00a 5.00c 7.00a XL98 XL97 XL7 XL5 error

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


Last Reviewed: October 30, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.