confusion123
Active Member
- Joined
- Jul 27, 2014
- Messages
- 400
My error handling tends to be as follows:
Is the above good practice?
I assume putting On Error Goto 0, "switches off" error handling.
But I've come across (though rarely):
when is that used?
Code:
On Error Goto Errhandler
' some code
Continuation:
On Error Goto 0
Exit Sub
Errhandler:
' do something
Resume Continuation
End Sub
Is the above good practice?
I assume putting On Error Goto 0, "switches off" error handling.
But I've come across (though rarely):
Code:
On Error Goto -1
when is that used?