MS Word Support

Using Macros to Format and Enter Text in MS Word

MS Word Templates & Macros: Macros 2 min read

NOTE: To learn how to create macros, check out this article.

To learn how to create styles in MS Word, check out this article.

Previously, we had outlined what macros are and how they can be created in MS Word, but now we will go a little bit further. Here we will show how you can apply your custom styles and assign them to be used with macro commands.

Let’s look at creating two distinct styles, and then combining them into a single macro command. In this example we will create a “Question” style and “Answer” style and have them both be used in a single macro.

Let’s begin.

In the “Home” tab, click on the “Styles” pane and click “Create a Style”…

Let’s call this style “Question” and click “Modify”…

Create the style you like, and then click “OK”…

Let’s create another style the same way and call it “Answer”

You should now have two distinct styles, each with their own formatting

Now, we can begin creating our macro

Let’s call our macro “QuestionAnswer” and assign it to the Alt+A hotkey

Now, let’s record the actions with the help of our new custom styles that the macro will execute

Test out the macro

As you can see, this macro contains both our custom styles that are applied with a key-press

NOTE: Note that the macro also contains a Date&Time function because we clicked it during the “recording” of the macro.

← Back to the Help Center