logo
search
list

Table of Content

Enabling the Developer Environment
Writing the VBA Script
Assigning a Custom Keyboard Shortcut
Alternative: Using the Quick Parts Gallery
Streamlining Document Reviews with WPS Office
Frequently Asked Questions

How to Add a Macro Review Comment in Microsoft Word

Posted by Khadija Khan

calendar

2026-09-08

views

870

likes

4

Automating repetitive tasks during document editing can save hours of manual typing, especially when you need to provide standardized feedback. If you frequently grade papers, edit manuscripts, or audit legal contracts, you probably type the same critique repeatedly. Learning exactly adding a Macro Review Comment in Microsoft Word allows you to insert pre-written text into a comment bubble with a single keystroke. This workflow relies on the built-in Visual Basic for Applications (VBA) environment. By writing a simple script, you can map your most common feedback phrases to custom keyboard shortcuts, drastically accelerating your review process.

Enabling the Developer Environment

Illustrated steps for Adding a Macro Review Comment in Microsoft Word
Key actions for Adding a Macro Review Comment in Microsoft Word.

Before writing any VBA code, you must reveal the tools required to create and manage macros. By default, the necessary ribbon tab is hidden to prevent accidental modifications by standard users. To begin the process of configuring adding a Macro Review Comment in Microsoft Word, you must first enable the Developer tab so you can access the coding interface.

  • Open your document and click the File menu in the top left corner.
  • Select Options at the bottom of the navigation pane to open the Word Options dialog box.
  • Click on Customize Ribbon in the left-hand menu.
  • In the right column, under the Main Tabs list, check the box next to Developer.
  • Click OK to apply the changes and return to your document.

You will now see the Developer tab located at the top of your screen. This tab is your gateway to accessing the Visual Basic editor, where you will build the automation.

Writing the VBA Script

With the Developer tab visible, you can now write the script that generates the comment. The code will instruct the application to anchor a new comment to your current text selection and populate it with your specific string of text. Follow these exact steps to program adding a Macro Review Comment in Microsoft Word using the integrated editor.

  • Navigate to the Developer tab and click the Visual Basic button on the far left.
  • In the new window, click Insert from the top menu and select Module to create a blank coding space.
  • Type the following code into the blank window, replacing the placeholder text with your actual feedback phrase:

Sub InsertReviewComment()
Dim cmt As Comment
Set cmt = Selection.Comments.Add(Range:=Selection.Range, Text:="Please clarify this statement. Provide a citation if necessary.")
End Sub

  • Close the Visual Basic Editor by clicking the red X in the top right corner. The application automatically saves the script in your Normal.dotm template, making it available across all future documents on your computer.

To verify the macro works correctly, highlight a sentence in your document, navigate to the View tab, click Macros, select your new macro from the list, and click Run. A comment bubble containing your exact text should immediately appear in the right margin.

Assigning a Custom Keyboard Shortcut

Running a script from the view menu defeats the purpose of automation. To maximize your editing speed, you must assign your new script to a quick keyboard combination. This finalizes your setup for adding a Macro Review Comment in Microsoft Word, turning a multi-click process into a split-second action.

  • Click File, select Options, and navigate back to Customize Ribbon.
  • Near the bottom left of the window, locate the text that says "Keyboard shortcuts:" and click the Customize button next to it.
  • In the Categories list on the left side of the dialog box, scroll to the bottom and select Macros.
  • In the Macros list on the right, select the macro you just created (e.g., InsertReviewComment).
  • Click inside the Press new shortcut key field and type your desired combination, such as Alt + C.
  • Look at the "Currently assigned to" field just below the input box to ensure you are not overwriting a crucial system default shortcut.
  • Click Assign at the bottom left, then click Close.

Highlight another word in your text and press your new keyboard combination. The pre-filled comment will instantly attach to the selection, confirming your automation is fully operational.

Alternative: Using the Quick Parts Gallery

If your organizational IT policies disable macros for security reasons, you cannot use VBA to generate comments automatically. As an alternative method for adding a Macro Review Comment in Microsoft Word without using code, you can leverage the Quick Parts feature. While this requires manually inserting a blank comment first, it prevents you from having to type the full feedback string manually.

  • Highlight a word and insert a blank comment by clicking New Comment on the Review tab.
  • Type your standard feedback into the comment box and highlight the text you just typed.
  • Navigate to the Insert tab, click Quick Parts in the Text group, and choose Save Selection to Quick Part Gallery.
  • Name your entry with a short trigger word (e.g., "Clarify") and click OK.

During future reviews, insert a blank comment, type the first few letters of your trigger word, and press F3 or Enter when the autocomplete prompt appears. The comment bubble will instantly populate with your saved text.

Streamlining Document Reviews with WPS Office

WPS Office options related to Adding a Macro Review Comment in Microsoft Word
How WPS Office can support related document work.

Because VBA macros rely on proprietary Microsoft architectures and Windows administration policies, WPS Office cannot change or execute those specific Microsoft-side macro settings tied to standard Word templates. However, if you are working to add a macro review comment in Microsoft Word because you are overwhelmed by tedious manual editing workflows, WPS Office provides a highly capable, out-of-the-box alternative for professional document auditing.

WPS Office features robust built-in tracking and commenting tools that operate consistent on standard document formats (.docx), ensuring seamless cross-compatibility. For reviewers, WPS Office requires no complex coding to manage comprehensive document feedback. Furthermore, it integrates AI-driven writing assistants that can automatically summarize lengthy passages, suggest contextual rewrites, and streamline the proofreading process directly within the interface.

If your daily tasks involve processing academic papers or auditing legal contracts, the suite's built-in PDF toolkit allows you to easily convert, annotate, and merge files without needing expensive third-party software. By taking advantage of its lightweight performance and cost-efficient licensing, users can access powerful formatting and reviewing tools without being locked into premium subscription models or complex scripting environments.

100% secure

Frequently Asked Questions

Why is my VBA code returning an error when I try to run the macro?

Errors typically occur if the document does not have an active text selection or if the syntax is incorrect. while working on adding a Macro Review Comment in Microsoft Word, you must ensure you have highlighted at least one character in your document before triggering the script. Additionally, double-check your code to confirm you included both the opening Sub and closing End Sub lines, and verify that the quotation marks around your text string are straight quotes (" ") rather than curly, formatted quotes (“ ”).

Can I format the text inside the macro-generated comment?

Yes, but it requires expanding your VBA script. Once the basic command to create the comment is executed, you can add lines to target the specific text range within that comment object. By applying properties like .Range.Font.Bold = True or .Range.Font.ColorIndex to the newly created comment variable in your code, you can automatically generate highlighted, bolded, or color-coded feedback.

Why does my macro disappear when I share the document?

By default, macros are saved locally in your Normal.dotm template, meaning they only exist on your specific machine. If you want the macro script to travel with the file so other users can utilize it, you must use the Save As function to save the file as a Word Macro-Enabled Document (.docm). You must then manually store the module within the document's specific project folder in the Visual Basic Editor rather than your local Normal template.

Is it possible to assign multiple different comments to different shortcuts?

Absolutely. You can create as many unique macros as you need by simply copying the original script, pasting it below the first one, changing the Sub name (e.g., Sub InsertGrammarComment()), and altering the text string inside the quotation marks. Once you have saved multiple scripts in your module, you can assign each one to a distinct keyboard shortcut, allowing you to build an entire library of instant grading or auditing responses mapped to different keys.

Khadija Khan

Khadija Khan is a tech writer who explores office suites and creates content to simplify everyday tools. She teaches and inspires through clear, engaging writing.