1. Home
  2. Computing & Technology
  3. Visual Basic

VBA - The Word Working Partner - Part 1

By Dan Mabbutt, About.com

3 of 7

Completing the Program

Startup Folder Message Box

Startup Folder Message Box

Press F5 to display the list of macros in your document and select AutoExec. Then click Run. You should see a MessageBox display something like the image above.

Click the OK button on the MessageBox and then close the Visual Basic Editor. Save the document as a document template type in the folder that you have now learned (from the message in the MessageBox) is the startup folder. It doesn't matter what you name the document template as long as it is in the startup folder. Now, close Word and open any document again. This time, you should see the MessageBox displayed as soon as Word opens.

You probably don't want this message to be displayed whenever you open Word from this point on. To stop it, just delete the document template you saved earlier from your startup folder.

Explore Visual Basic
By Category
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Learn VB 6
  5. Learn VBA
  6. VBA - The Word Working Partner - Part 1

©2009 About.com, a part of The New York Times Company.

All rights reserved.