A line number is simply a number placed at the beginning of a line to identify it. For example, consider this demonstration of GoTo: : GoTo « Language Basics « VBA / Excel / Access / Word






A line number is simply a number placed at the beginning of a line to identify it. For example, consider this demonstration of GoTo:

 
Sub Demo_of_GoTo()
1
    If MsgBox("Go to line 1?", vbYesNo) = vbYes Then
        GoTo 1
    End If
End Sub

 








Related examples in the same category

1.A GoTo statement with a condition
2.how a GoTo statement works:
3.Use GoTo to do a loop