Macros

A macro is a means of automating a series of actions so you do not need to endlessly perform the same set of tasks. Most Microsoft Office programs support macros, so you can set them up and run them in anything from Word or Excel to PowerPoint or Access.
 * Macros **

However, that macros allow actions to execute, something that virus writers have fully exploited. If you want to send a document to someone, you should turn off macros. You should also set your email client and security settings to disable macros or to quarantine any email messages with macro attachments.
 * Note:-**

You can record a macro to automate a series of steps within Word to help you work faster. You might use a macro to add special formatting. When you record a macro, Word captures every keystroke you make and creates a macro from these steps.

To begin, select Tools, Macro, Record New Macro. Enter a name for the macro and specify where it is to be stored. If you want the macro to be available to all documents, choose the Normal.dot template file. Then choose where to assign the Macro, in this case Keyboard, by clicking the appropriate button.

The Customize Keyboard box will now open. Click in the Press :-
 * New Shortcut Key** field, choose the key combination you want to activate your macro and the location for the keyboard command, then click Assign. Click Close to begin recording your macro.

With the recording toolbar displayed, simply type in whatever you want to record as your macro. Click the Stop button when you have finished. Word will create your macro and you can activate it whenever you use the assigned shortcut.

You can if you wish place a macro button in a toolbar and you will not need to remember special key combinations to invoke them.

Note that you can create the toolbar when you create the macro (or at a later stage), but you cannot later assign a shortcut key to a macro that has a toolbar entry.

Click on Tools, Customize Select the Commands tab. Select Macros from the list of Categories. Choose the storage location as before, then select the macro you want to add to the toolbar from the list of Commands. Drag the macro to where you want it on the toolbar. Word will automatically create a button and label it with the name of the selected macro. To change the name of the Macro button, click the Modify Selection button and type in a new name, then click Close.