If you want to learn how to create Word macros, then this Knowledge Base article is the place to start.
As the site says, “The Microsoft Knowledge Base contains a number of articles that include sample code for Visual Basic for Applications macros. Many of these macros illustrate basic concepts of programming in Visual Basic for the various Office 2000 applications.”
This tutorial explains how to create a macro, add it to a module, and then run it.
Read more at: http://support.microsoft.com/kb/212536/EN-US/