Hi Guys,
I have the following
The idea being that in XYZ I loop in that Err_LoopB until it does not error.
I know you are asking why am I doing this - The reason for doing this is that I am waiting for a HTML Document to be ready.
The question is that Err_LoopB seems to only loop 2 and then it goes back to Err_doingsomething and produces the same error message. How can I make it loop more often?
I have the following
Code:
private sub doingsomething()
On Error GoTo Err_doingsomething
call XYZ
Exit_doingsomething:
Exit Sub
Err_doingsomething:
MsgBox Err.Description & " Error No." & Err.Number
Resume Exit_doingsomething
end sub
Code:
private sub XYZ()
On Error GoTo Err_XYZ
code here
On Error GoTo Err_LoopB
Err_LoopB:
DoEvents
Err.Clear
code that will produce an error
On Error GoTo Err_XYZ
Exit_XYZ:
Exit Sub
Err_XYZ:
MsgBox Err.Description & " Error No." & Err.Number
Resume Exit_XYZ
end sub
I know you are asking why am I doing this - The reason for doing this is that I am waiting for a HTML Document to be ready.
The question is that Err_LoopB seems to only loop 2 and then it goes back to Err_doingsomething and produces the same error message. How can I make it loop more often?