Line Numbers and Labels

Older versions of Visual Basic require numbers at the beginning of every line. More recent versions do not support or require line numbers. Use of line numbers causes error messages.

You can use a label to reference a line of code. A label can be any combination of text and numbers. Typically it is a single word followed by a colon, and placed at the beginning of a line of code. The Go To statement uses these labels.