In the above example, execution is redirected to a label called ErrHandler. This is done with the statement On Error GoTo ErrHandler. Typing a word ending with a colon (such as ErrHandler:) creates a label. Code following the label deals with the error. Because VB will process your code line by line, you must put Exit Sub before the label. This is to provide a means of exiting the procedure when no error has occurred, and to keep the error handler from always running—even if no error has occurred!