8.3.2.Create a Macro |
|
Click the View tab. Click the Arrow under Macros button. Then click View Macros on the menu.
|
|
![Then click View Macros on the menu.](../../Microsoft-Office-Word-2007Images/Create_Macro___Then_Click_View_Macros_On_Menu.PNG) |
Type a name for the macro. Click the Macros in list, then click All active templates and documents or the document to which you want the macro stored.
|
|
![Then click All active templates and documents or the document to which you want the macro stored.](../../Microsoft-Office-Word-2007Images/Create_Macro___Then_Click_All_Active_Templates_And.PNG) |
|
![Click Create.](../../Microsoft-Office-Word-2007Images/Create_Macro___Click_Create.PNG) |
The Microsoft Visual Basic window opens.
|
|
![The Microsoft Visual Basic window opens.](../../Microsoft-Office-Word-2007Images/Create_Macro___The_Microsoft_Visual_Basic_Window_O.PNG) |
Click the Module window, and then type new Visual Basic commands.
|
|
![Click the Module window, and then type new Visual Basic commands.](../../Microsoft-Office-Word-2007Images/Create_Macro___Click_Module_Window_And_Then_Type_N.PNG) |
To run the macro, press F5.
|
|
![To run the macro, press F5.](../../Microsoft-Office-Word-2007Images/Create_Macro___To_Run_Macro_Press_F5.PNG) |
Then click Close and Return to Microsoft Word.
|
|
![Then click Close and Return to Microsoft Word.](../../Microsoft-Office-Word-2007Images/Create_Macro___Then_Click_Close_And_Return_To_Micr.PNG) |