Microsoft KB Archive/152402

= Error Handler Ignored with Break On All Errors Selected =

PSS ID Number: 152402

Article Last Modified on 8/15/2003

-

The information in this article applies to:


 * Microsoft Excel 97 for Windows
 * Microsoft Excel for Windows 95 7.0
 * Microsoft Excel for Windows 5.0
 * Microsoft Excel 98 Macintosh Edition
 * Microsoft Visual Basic for Applications

-



This article was previously published under Q152402





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.



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 XL

Keywords: kbhowto kbProgramming KB152402

Technology: kbExcel500 kbExcel95 kbExcel95Search kbExcel97Search kbExcel98 kbExcel98Search kbExcelMacsearch kbExcelSearch kbExcelWinSearch kbHWMAC kbOSMAC kbVBASearch kbZNotKeyword3 kbZNotKeyword6

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.