Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Please help with On Error GoTo
Hello all,
In my code, I inserted an error trapping code in case an error has occurred. If there is an error, the code will jump to the error handler section and execute the code in the ErrorHandler section. So the following is what I have: On Error Goto ErrorHandler 'The code in between ErrorHandler: Msgbox "An error has occurred please contact the IT department", vbCritical Somehow, the code from above executes the code in the ErrorHandler: section even there is no error. The code however did jump right into the ErrorHandler section when there was an error. Did I do something wrong? Please help. Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Resetting error reporting after On Error GoTo | Excel Programming | |||
On Error Goto 0 | Excel Programming | |||
Error Handling - On Error GoTo doesn't trap error successfully | Excel Programming | |||
On Error Goto doesn't goto | Excel Programming | |||
On Error Goto doesn't goto | Excel Programming |