pascalxricher
Programmer
Hi!
Is it possible to do a Retry on the line that caused the error in an error handling ?
Is it possible to do a Retry on the line that caused the error in an error handling ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub SomeSub()
Dim i As Integer
On Error Goto ErrHndlr
'some code here
On Error Goto Retry
Retry:
Err.Clear
i = i + 1
If i = 10 GoTo CutItOut
'Code You Want To Retry
CutItOut:
Err.Clear
On Error Goto ErrHndlr
'Remainder of Code
End Sub