PSS ID Number: 111869
Article Last Modified on 1/17/2001
The information in this article applies to:
- Microsoft Visual Basic for Applications 1.0
This article was previously published under Q111869
SYMPTOMS
In Microsoft Visual Basic Programming System, Applications Edition, when
you type a line number greater than 65529, type code, and then press ENTER
to start a new line, you may receive the following error message:
Expected: line number or label or statement or end of statement
If you do not have the Display Syntax Errors option selected, you receive a
syntax error when you run the procedure.
CAUSE
Visual Basic, Applications Edition does not support line numbers greater
than 65529.
WORKAROUND
To work around this problem, do one of the following:
- Use line numbers less than 65529.
-or-
- Use line labels to identify a single line of code. A line label
can contain numbers, but must start with a letter and end with a
colon.
MORE INFORMATION
A line number is used to identify a single line of code. This number can be
any combination of digits that is unique within the module. Line numbers
can begin in any column as long as they are the first non-blank characters.
Line numbers greater than 65529 are treated as line labels and cannot be
returned by the Erl function.
NOTE: Line numbers are used for backward compatibility; it is not
recommended that you use them in your procedures.
Additional query words: 1.00 5.00 linenum lables
Keywords: KB111869
Technology: kbVBA100 kbVBASearch kbZNotKeyword3 kbZNotKeyword6