Error handler testing

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!
 
S

Sandra Daigle

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

Err.Raise 91
'or
Err.Raise 94
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top