ERROR HANDLING

B

Brettjg

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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top