Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using OnError
#2
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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)