
Err.Raise Causes Automation Error
On Fri, 11 Oct 2002 05:48:45 -0700, "Scott Stewart"
Quote:
>I have defined a constant conRunCanceled as vbObjectError
>+ 7890. During the process if the user clicks on the
>cancel button I use Err.Raise conRunCanceled to try
>trapping it in my error handling routine. Too often I get
>an "Automation Error" instead and it completely ignores
>the On Error Goto ThisErrorHandler.
At the start of your application, set the error trapping to "Break on
unhandled errors":
Application.SetOption "Error Trapping", 2
HTH
Matthias Kl?y
--
Kl?y Computing AG
www.kcc.ch