You can use the macro recorder to record a sequence of actions, or you can create a macro from scratch by entering code in the Visual Basic Editor (not covered in this tutorial). Note: To work with macros in Office Word 2007and Excel 2007, you need to show the Developer tab – as below.
Click the Microsoft Office Button (1) , and then click Word Options (2).
Click Popular (3).
Under Top options for working with Word, select
the Show Developer tab in the Ribbon check box (4)