XL: Error Handler Ignored with Break On All Errors Selected

Last reviewed: February 3, 1998
Article ID: Q152402
The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for 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.00 5.00a 5.00c 7.00 7.00a XL98 XL97 XL7 XL5 error
eror
Keywords : kbprg xlwin PgmOthr
Version : WINDOWS:5.0,5.0c,7.0,7.0a,97; MACINTOSH:5.0,98
Platform : MACINTOSH WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.