The program goes to the point in the code with the label and continues executing (presumably, you have defined what to do here to mitigate the error)
ON ERROR GOTO Label
The program will continue ignoring errors until it either can't run at all, you handle the errors, or you disable the resume next option. I often (but not always) use ON ERROR RESUME NEXT to allow the program to continue and then I explicitly check for an error number and handle the error there. For example:
ON ERROR RESUME NEXT
ON ERROR RESUME NEXT X = 5 IF X = "bob" THEN X = "Bob" IF ERR.NUMBER <> 0 THEN 'Handle the error END IF
ON ERROR GOTO 0
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.