At this point, you should have started Word 2000 with a blank document. We're going to use the VBA Macro Recorder to create your first program.
A macro is just a name for a bundle of keyboard commands that are stored together in the same file. Many desktop applications include a software tool that will let you record a sequence of commands in a program and save them as a macro. In Microsoft applications, this tool is called the Macro Recorder. The Microsoft Office applications that can do this trick are Word, Excel, PowerPoint and Project. Although the VBA Macro Recorder is very useful for simply creating simple keyboard macros, programmers have discovered that it's even more useful to give them a running start in more sophisticated programs. We'll see why in this lesson.
- Open the VBA Editor and start the Macro Recorder. (Use the Menu command: Tools > Macro > Record New Macro.)

- Name your macro: AboutVB1 by typing that name in the Macro Name textbox.
- Select Document1(document) as the location to store your macro and click OK. See the example above.
(Note: If you pick All Documents(Normal.dot) from the drop down menu, this test VBA program will, in effect, become a part of your Word system. Normal.dot is the default so you must change it. If you only want to use a VBA macro in a specific document, or if you want to be able to send it to someone else, save the macro in the document.)
- Create a Word document with this content:
Hello World.
(Note: Hello World is almost required for a "First Program" because the very first programming manual for the early computer language "C" used it. It's been a tradition ever since.)
- Stop the Macro Recorder by clicking the Stop icon in the Macro Control dialog window. See the illustration below.

- Close Word and save the document using this name: AboutVB1.doc.
That's it! You have now written a Word VBA program. We'll see what it looks like in the next section:
3 - Check Out The Macro