Table of contents
Collapse the table of content
Expand the table of content

Document conventions (Visual Basic for Applications)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Visual Basic documentation uses the following typographic conventions.

Sub, If, ChDir, Print, True, DebugWords in bold with initial letter capitalized indicate language-specific keywords.
SetupWords you are instructed to type appear in bold.
object, varname, arglistItalic, lowercase letters indicate placeholders for information you supply.
pathname, filenumberBold, italic, and lowercase letters indicate placeholders for arguments where you can use either positional or named-argument syntax.
[ expressionlist ]In syntax, items inside brackets are optional.
{ WhileUntil }In syntax, braces and a vertical bar indicate a mandatory choice between two or more items. You must choose one of the items unless all of the items are also enclosed in brackets. For example: [{ ThisOrThat }]
ESC, ENTERWords in capital letters indicate key names and key sequences.
ALT+F1, CTRL+RA plus sign (+) between key names indicates a combination of keys. For example, ALT+F1 means hold down the ALT key while pressing the F1 key.

Code Conventions

The following code conventions are used:

Sample CodeDescription
This font is used for code, variables, and error message text.
An apostrophe (') introduces code comments.
A space and an underscore ( _) continue a line of code.
© 2017 Microsoft