• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 18. Working with VBA > A VBA Language Primer

18.2. A VBA Language Primer

In this section, we'll take a look at the syntax and structure of the VBA language. Entire books have been devoted to VBA, but we'll just hit the high points here. When you're through with this section, you'll understand the basic building blocks of VBA and how to use them to create a program.

18.2.1. Statements

A statement in VBA code is like an imperative sentence in a spoken language. Each statement in a program is a command for your machine to perform. The following statement displays a message box with the text "Hello, world!":


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint