Message 1 of 4
Double error?
Not applicable
05-10-2001
07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to deal with 2 errors in the same sub (code below). I know I have to reset the error handler but what i am doing is not working. I appreciate any help anyone could give me.
Do Until find1 = True
On Error GoTo quit1
MY CODE HERE.......
Loop
quit1:
find1 = True
Do Until find2 = True
On Error GoTo 0
On Error GoTo quit2
MY CODE HERE.....
Loop
quit2:
find2 = True
Do Until find1 = True
On Error GoTo quit1
MY CODE HERE.......
Loop
quit1:
find1 = True
Do Until find2 = True
On Error GoTo 0
On Error GoTo quit2
MY CODE HERE.....
Loop
quit2:
find2 = True