Using a Naming Convention

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

There are many formal naming conventions, and each has its adherents and detractors. You can adopt one of the existing conventions or create one of your own. The important points are that you adopt some convention that would be self-evident to another Office developer and that you apply it consistently.

At a minimum, a useful naming convention will identify and distinguish variable type (object variable, control variable, and data type), variable scope, constants, and procedures, and it should be simple to understand and use.

See Also

Writing Solid Script | Writing Solid Code | Naming Variables and Constants | Naming Objects and Controls | Naming Functions and Subroutines | Structuring and Formatting Your Code | Commenting Code | Designing Code to Be Used Again