Microsoft Office Tutorials and References
In Depth Information
Understanding VBA Syntax
A Quick Info syntax chart doesn’t give you any details; instead, it just guides
you through the process of typing the entire statement according to the
rules of syntax. For detailed information on each item in the syntax chart,
you have to look in the help system. Here are several ways to get help for a
✦ Select the keyword in the Code window, and press Help (F1).
✦ Search the Object Browser for the keyword, and use the browser’s help
system as described in Chapter 1 of this minibook.
When you get to the help page, you see a description of the keyword. You
also see a syntax chart similar to the one in Quick Info, but you get a lot
more information, including the meaning of each part, acceptable values for
each part, one or more examples, and perhaps links to related help pages.
Figure 2-3 shows a small portion of the help page for the MsgBox keyword.
Use the scroll bar on the right side of the page to scroll through it all.