LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 295
Default ERROR HANDLING

Just trying to write a little error handler. On the first occurence of the
error it goes to err_handler nicely, but then I want it to crash n the second
occurence and go to Debug in the usual way, so that the problem line is
highlighted and i can maybe correct it, and continue. What I don't know is
how to set it to crash after the "ELSE".

Windows(xx).Activate
GoTo end_open_proc

err_handler:
If Not err_flag = "Y" Then
Application.EnableEvents = True
Application.Run "PERSONAL.xls!WAV_CRASH"
MsgBox "Error " & Err.Number & " " & Err.Description
err_flag = "Y"
Resume
Else
'what goes here to make it crash on the second occurence of the error?
End If
end_open_proc:
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error handling error # 1004 Run-time error [email protected] Excel Programming 3 May 20th 08 02:23 PM
Set Error handling INSIDE error-trap Michelle Excel Programming 6 May 3rd 08 03:30 PM
Error Handling - On Error GoTo doesn't trap error successfully David Excel Programming 9 February 16th 06 05:59 PM
Error handling with a handling routine ben Excel Programming 0 March 15th 05 03:01 PM
Error Handling James Agostinho Excel Programming 1 January 30th 04 06:40 AM


All times are GMT +1. The time now is 12:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"