Goto Statement |
GoTo label
label
Use: Required
Subroutine name.
Passes execution to a subroutine within a procedure.
label must be a subprocedure defined within the same procedure as Goto.
The only time a modern VB program should include a Goto statement is in an error handler, as in:
On Error Goto My_Sub_Err
For more information on error handling, see Chapter 6.