I know that you can define an error handler in a sub or function...but I've got a program that runs 24/7 for other people, even when I'm not around to see what it's (or they're) doing. Is there a way to have a global error handler for every line of code, just so i can grab the error message and write it to a log file before the program dies? That way I can catch the bugs and fix them, despite the end-user's always-helpful cries of "your program's a piece of crap." :-)

-Mark

-----
Mark D. Scudder
(www.markscudder.com)