On Error GoTo 0

This statement is the Default Error Handler which interrupts execution and displays a dialog box.
If you do not specify which type of error handling you want to use, this is the default.

Here are the error messages that will be displayed.


Changing the Type Of Error Handling

There are other types of error handling that you can use.

If you switch to a different type of error handling (Resume Next or GoTo LineLabel) you can switch back to the default by using the "On Error Goto 0" statement.


Resets Automatically

There is no need to include the following line of code at the end of a subroutine (or function).
The type of error handling automatically resets back to the default when the subroutine exits.


© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext