04-07-2006, 10:17 PM
If running the the code after the error doesnt matter, make a label at the end of the sub e.g 'ErrorHandler:' ' HandleError:' then put 'OnError GoTo ErrorHandler' or what ever you called the lebel
Btw, make sure you put exit sub or exit function before the lebel, otherwise if the code allows, it will run the error handler no matter what
Btw, make sure you put exit sub or exit function before the lebel, otherwise if the code allows, it will run the error handler no matter what