How do you use 'On Error Resume Next' to skip an error in a specific line of code?

Responsive Ad Header

Question

Grade: Education Subject: Support
How do you use 'On Error Resume Next' to skip an error in a specific line of code?
Asked by:
82 Viewed 82 Answers

Answer (82)

Best Answer
(236)
To use 'On Error Resume Next' with a specific line, place the statement directly before that line. For example: `On Error Resume Next` followed by the line of code that might cause an error. To turn it off again, use `On Error GoTo 0`.