Choosing Variable Names
There are a few simple rules to follow when naming your variables. A variable name:
- Must begin with a letter.
- Cannot contain an embedded period, mathematical or comparison operator, or type-declaration character.
- Must not exceed 255 characters.
- Must be unique within its scope.
- Cannot be the name of a Visual Basic method, property, function, argument name, or other reserved keyword.
Tip
To reduce the amount of time you spend deciphering and debugging code, use each variable for only one purpose.