In order to perform a task constantly in Microsoft Word, we can automate the task using a macro. A macro is a series of Word commands and instructions that we group together as a single command to accomplish a task automatically. Instead of manually performing a series of time-consuming, repetitive actions in Word, you can create and run a single macro in effect, a custom command that accomplishes the task for you.
Here are some typical uses for macros:
1. To speed up routine editing and formatting
2. To combine multiple commands
3. To make an option in a dialog box more accessible
4. To automate a complex series of tasks
Word offers two ways for you to create a macro: the macro recorder and Visual Basic Editor. The macro recorder can help you get started creating macros. Word records a macro as a series of Word commands in Visual Basic for Applications programming language. You can open a recorded macro in Visual Basic Editor to modify the instructions. You can also use Visual Basic Editor to create very flexible, powerful macros that include Visual Basic instructions that you cannot record.
After you've assigned a macro to a toolbar, a menu, or shortcut keys, running the macro is as simple as clicking the toolbar button or menu item or pressing the shortcut keys. You can also point to
In view of the above, it is evident, Macro on the Tools menu, click Macros, and then click the name of the macro you want to run. We can store macros in templates or in documents. By default, Word stores macros in the Normal template so that they're available for use with every Word document. However, if a macro stored in the Normal template is useful only for a particular type of document, you may want to copy the macro to the template attached to that document and then delete the macro from the Normal template. To copy, delete, or rename a macro, use the Organizer. On the Tools menu, point to Macro, click Macros, and then click Organizer.