Macros has been an old phenomenon of Office apps allowing you to record set of actions you perform on document, and to repeat them in future. Through Macros, you don’t need to perform same action, i.e, change formatting, style, font family, size, and color over and over again in document. It actually records each and every click and keystroke you press while performing the task, so that you can play them back to perform same action over your documents.
To begin, launch Word 2010 and open a document to record a macro. For Illustration, we have included a document containing a paragraph. We will record a macro to automatically format the paragraph.
To record a Macro, navigate to View tab, and from Macros options, click Record Macro.
It will bring up Record Macro dialog, allowing you to enter a Macro name. Under Assign macro to options, click Keyboard button to assign a hotkey.
Now place insert cursor in Press new shortcut key box, and assign a hotkey by pressing keys combination. Click Assign to assign hotkey to macro, and then click OK.
You will see recorder-like image with pointer, indicating that macro is being recorded. We will do some formatting over the text like insert drop box, change paragraph color etc.
To stop recording macro, head over to View tab and from Macro options, click Stop Recording.
Now we will execute macro over new document to align with the formatting style we have applied earlier.
Run the macro by pressing the specified hotkey. In our case, it is Ctrl+Shift+M. It will immediately apply recorded formatting style to the new paragraph.
For saving a macro-enabled document, on File menu, click Save as. From Save as dialog, under Save as type options, click Word Macro-Enabled Template (*dotm). Enter an appropriate name of document and click Save.
We have demonstrated recording a macro with simple steps and applied only basic formatting over the document. However , you could create a complex one to record tons of document design changes and formatting styles.
You can also check out previously reviewed guides on How to fill Word 2010 document with Auto-fill & How to change font color to Gradient fill.