The final option for error handling in the IDE is to Break on All Unhandled Errors.
For this option if an error occurs and an errorhandling routine is in place, that
error handler will be run and execution will continue without entering Break mode.
If no error-handling routine is active (see the section "Using
the Error-Handling Hierarchy"
) when a runtime error occurs, the program will
go into Break mode.
The difference between breaking in class modules and breaking on unhandled
errors comes into play when the code that generated a runtime error is in a class
module. In Break in Class Module option, if an unhandled error occurred in a class
module, Visual Basic would enter Break mode at that line of code in the class
module. In the Break on All Unhandled Errors option, if the unhandled error occurs
in a class module, Visual Basic enters Break mode at the line of code that referenced
the procedure in the class module.