How to Add Comments to Multiple Search Results in Word
Question details
The user needs to add comments to every occurrence of a specific search term (such as "Employee") across an entire Word document simultaneously.
- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Reviewing or annotating a large document where a specific keyword needs to be repeatedly highlighted with the exact same comment.
- Observed behavior
- Microsoft Word does not provide a built-in command or native feature to bulk-add comments to all occurrences of a search term at once.
Before running any macros or automation scripts, verify that you have saved a backup copy of your document to prevent unintended formatting or text changes.
Use a VBA Macro to Automate Comment Insertion
Since Word lacks a native bulk-comment feature, creating a custom VBA macro is the most direct way to find specific terms and attach a comment to each instance.
Visual Basic for Applications (VBA) allows you to automate repetitive tasks in Word. By writing a short script, you can command Word to loop through the document, find your target word, and insert a comment at that exact text range.
Open your Word document and press Alt + F11 on your keyboard to launch the Microsoft Visual Basic for Applications window.
In the top menu, click 'Insert' and select 'Module' to create a blank window for your code.
Paste a VBA script designed to loop through the document's text using the Find object and add a Comment to each successfully found text range.
Press F5 or click the 'Run' button. Return to your Word document to verify that the comments have been successfully attached to all instances of your search term.
Implement a Power Automate Workflow
For users who prefer cloud-based automation over local macros, Microsoft Power Automate can be configured to process Word documents and handle advanced repetitive tasks.
Try WPS Office for Efficient Document Reviewing
While Microsoft Word requires complex macros for tasks like bulk commenting, WPS Office offers a free, lightweight, and highly compatible alternative for your document reviewing needs. It seamlessly handles Microsoft Office formats and provides a familiar user interface for an effortless migration.
- 1. Download and Install: Get WPS Office Free from the official website and install it on your PC or Mac.
- 2. Open Your Document: Launch WPS Writer and open your existing .docx file directly. All your original formatting will be perfectly preserved.
- 3. Utilize Review Tools: Navigate to the Review tab to easily add, reply to, manage, and navigate through all document comments seamlessly.

Frequently Asked Questions
Can I find and replace text with a comment in Word without macros?
No, Microsoft Word does not have a native 'Find and Replace with Comment' feature. The standard Find and Replace tool only works for text and formatting. You must use VBA macros or third-party add-ins to automate bulk comment insertion.
How do I quickly delete all comments from a Word document?
You can quickly remove all comments by navigating to the Review tab, clicking the small arrow under the 'Delete' button in the Comments group, and selecting 'Delete All Comments in Document'.
Why are my macro-added comments attaching to the wrong text?
This usually happens if the VBA code does not properly define or update the specific text 'Range' object during the search loop. Ensure your macro collapses or resets the search range after each successful find.
Does WPS Office support VBA macros for document automation?
Yes, WPS Office provides VBA macro support in its premium versions, allowing you to run similar automation scripts to streamline repetitive document editing tasks just like you would in Microsoft Office.




