tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
I am trying to handle multiple errors and am a bit surprised the following actually works:
I am puzzled by this line:
Can someone please explain.
Thanks
Rich (BB code):
On Error Goto Errhandler
' Do something
Exitpoint:
On Error GoTo 0 ' OK this line is not actually needed.
Exit Sub
ErrHandler:
On Error Resume Next
'Do something
On Error GoTo 0 ' Since this line resets the error handling action, why does the resume statement work?
Resume Exitpoint
I am puzzled by this line:
Rich (BB code):
On Error GoTo 0 ' Since this line resets the error handling action, why does the resume statement work?
Can someone please explain.
Thanks
Last edited: