On Error GoTo [< label> | 0 | -1] On Error statement The specified line must be in the same procedure as the On Error statement. When a run-time error occurs, execution transfers to the statement following the statement or procedure call that resulted in the error.