1. Home
  2. MS Office

Create Macros In Word 2010

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.

document 1

To record a Macro, navigate to View tab, and from Macros options, click Record Macro.

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.

enter macro name

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.

assign button

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.

rewcording macro

To stop recording macro, head over to View tab and from Macro options, click Stop Recording.

stop recording

Now we will execute macro over new document to align with the formatting style we have applied earlier.

new document

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.

run macro

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.

macro enabled

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.

Leave a comment