Article ID: 149252
Article Last Modified on 10/11/2006
You can also ignore user interrupts completely by setting the
EnableCancelKey property to xlIgnore. In this condition, Microsoft
Excel ignores all attempts by the user to interrupt the running
procedure.
Note Use caution when disabling or ignoring user interrupts. It is
possible to write code that never returns or ends. If you disable
interrupts by setting the EnableCancelKey property to xlIgnore, or if
you always use the Resume statement to return from a trapped error,
your procedure will not return control to the user.
146864 Error Trapping with Visual Basic for Applications
EnableCancelKey
Error Trapping
Additional query words: 5.00a 5.00c 5.0 XL7 XL5 XL DocErr
Keywords: kbfix kbprogramming kbdtacode KB149252