Question
What is the purpose of the error handler block when using 'On Error GoTo'?
Asked by: USER6524
74 Viewed
74 Answers
Answer (74)
The error handler block, designated by the line label specified in 'On Error GoTo', contains code that is executed when an error is trapped. This code typically involves identifying the error, logging it, displaying a user-friendly message, and often, cleaning up resources before exiting the procedure gracefully.