Error handler testing

  • Thread starter Thread starter Joel Wiseheart
  • Start date Start date
J

Joel Wiseheart

Well, the good news is my code isn't generating any errors.

The bad news is, my code isn't generating any errors, and
I'd like to test the error handlers.

What's a good way to "induce" a run-time error, so I can
verify the error handler itself is functioning properly?

Thanks!
 
You can use Err.Raise to raise specific errors - for example:

Err.Raise 91
'or
Err.Raise 94
 
Back
Top