Software & Apps > MS Office How to Create a Macro for Text Formatting Macros make quick work of complex formatting requirements By Martin Hendrikx Martin Hendrikx Writer Galen University Martin Hendrikx is a former Lifewire writer and an instructor with a background in technology whose work has been published by How-To Geek and other outlets. lifewire's editorial guidelines Updated on March 13, 2021 MS Office Word Excel Powerpoint Outlook Trending Videos Close this video player What to Know Select the text to format, then turn on the Macro Recorder (enter Macro in search bar > Record Macro).Next, apply the desired formatting to your text > turn off the Macro Recorder.To use the macro, select text to apply the formatting macro to, then select the Macro tool in the MS ribbon > Run the macro. This article explains how to create and run a macro in Microsoft Word to format text in a very specific, often complex, way. What Is a Macro? A macro is a shortcut for performing more than one task. If you press Ctrl+E or select the Center Text button from the ribbon in Microsoft Word, your text automatically centers. While this one-click solution may not seem like a macro, it is. A Macro applies your custom formatting to any selected text with the click of a button rather than having to change the font, text size, positioning, or spacing manually. Westend61 / Getty Images Create the Formatting Macro While creating a macro may seem like a complicated task, it is actually quite simple. Just follow these four steps. Select a section of text for formatting. Turn on the Macro Recorder. Type macro in the Search box at the top of Word to find it fast. Apply the desired formatting to your text. Turn off the Macro Recorder. Using the Macro To use the macro in the future, simply select the text to which you want to apply the formatting using your macro. Select the Macro tool from the ribbon and then select your text formatting macro. Text entered after you run the macro will retain the formatting of the rest of the document. Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe Tell us why! Other Not enough details Hard to understand Submit