Here are some articles that can help you understand how VBA macros work in Microsoft Word.
Discusses how to insert a macro—supplied as text in a web page or newsgroup post—into a Word template.
Getting To Grips With VBA Basics In 15 Minutes
Starting to think correctly about VBA.
Creating a macro with no programming experience using the recorder
The macro recorder is a good way to get started.
How to modify a recorded macro
After you record a macro, it probably needs to be cleaned up—here's how.
Running a macro automatically when Word starts or quits
Running a macro automatically when a document is created, opened or closed
Intercepting events like Save and Print
If you want your macro to run when a certain event occurs, you have to name it correctly.
How to assign a Word command or macro to a toolbar or menu
How to assign a Word command or macro to a hot-key
Using MacroButton fields
Other ways of starting your macro.