I\'m reading up on how to use On Error Resume Next and I\'m trying to figure out how long that line will apply to the program. On the Microsoft site, I found t
SCOPE OF ON ERROR... STATEMENT
The effec5 of ON ERROR ... ends as soon as one of the following is encountered:
ON ERROR .... (Maybe in the form of ON ERROR RESUME x or ON ERROR GOTO x)Exit Sub / Exit Function within the same sub/function where defined.End Sub / End Function of the sub/function where defined.IS IT BAD TO USE ON ERROR RESUME NEXT?
Yes and No.
I would say don't use without knowing what the effect of this statement would be. Avoid if possible. Keep the scope short wherever not possible.
To nullify the effect of an ON ERROR RESUME NEXT statement, you can call ON ERROR GOTO 0