Article ID: 213558 - Last Review: October 11, 2006 - Revision: 3.2 XL2000: Error When Function Contains a BreakpointThis article was previously published under Q213558 SYMPTOMS
In Microsoft Excel, when you type or edit a formula in a worksheet, you
may receive the following error message:
This program has performed an illegal operation and will be shut down.
If the problem persists, contact the program vendor.
EXCEL caused an invalid page fault in module EXCEL.EXE at
014f:300960ef.
BINDER caused an exception 6bfH in module KERNEL32.DLL at
014f:bff9a080.
CAUSE
This problem may occur when all of the following conditions are true:
WORKAROUND
To prevent this problem from occurring, do not set a breakpoint in the
custom function. If you need to pause or break your macro at run-time, use
the MsgBox function or the End statement instead.
For more information about the MsgBox function, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type MsgBox function in the Office Assistant or the Answer Wizard, and then click Search to view the topic. STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. MORE INFORMATION
When you set a breakpoint in a custom function, and then type a formula
that refers to that function, Microsoft Excel displays the Visual Basic
Editor in break mode. You can then step through the macro code by pressing
F8, or you can press F5 to continue running the code. You can also set
watches and perform other tasks.
In Visual Basic for Applications, follow these steps to set a breakpoint in a custom function or subroutine:
NOTE: You can also remove a breakpoint by following the same steps. When you use a Microsoft Office program that contains an embedded Microsoft Excel workbook, and you type or edit a formula that refers to a custom function containing a breakpoint, Microsoft Excel and the Microsoft Office program may stop responding. Microsoft recommends that you do not set a breakpoint in a custom function when you are working in Microsoft Office Binder or your workbook is embedded in another Microsoft Office program. | Article Translations
|

Back to the top
