I thought that if an error is cleared though, that it goes back to 0 and you could use a resume next statement and everyone would be happy.
If you use the Resume statement then the error handler is desactivated and everyone will be happy. Just remember to clear the error value.
This is not the case. I think you should look for:
- an error situation where you forgot to use the Resume statement. This will mean that the error handler will continue to be active even after you dealt with the error. This would be a case of a missing Resume.
OR
- a error situation where you forgot to enable an error handler.
Ex:
Code:
On Error Resume Next
MsgBox 1 / 0
On Error GoTo 0
MsgBox 1 / 0
The "On Error GoTo 0" disables the error handler and so on the second 1/0 you will see the debug error box (you forgot the "On Error Resume Next" after the "On Error GoTo 0", to re-enable the error handler).
In this case you should use the "On Error GoTo 0" only after the second error to keep the error handler enabled during the 2 operations. You should just test and clear the error value.
.