Document Editing Problems

Move Microsoft Word Comment Text into the Document

Chanuka GeekiyanageChanuka Geekiyanage Nov 22, 2026 869 views

Question details

Move text from Word comments into the main document after the passages they reference.

Move Word Comment Text into the Main Document
Product
Microsoft Word
Device & OS
not provided
Scenario
The user wants comment content to appear as regular document text next to the associated passage.
Observed behavior
Comment text should appear in the main document, with the original comments removed.
Before you start

Review the comments and confirm where their text should be inserted. For the macro method, open the document in desktop Word and make sure you can run VBA macros.

Solution 1Recommended

Move multiple Word comments with a VBA macro

Use this method to insert comment text after each associated passage and remove the processed comments.

The macro processes comments from last to first and inserts their text as plain document text. It does not preserve comment formatting, author information, or timestamps; review threaded comments and the results afterward.

1
Open the VBA editor

In desktop Word, open the document, then select Developer > Visual Basic. If the Developer tab is hidden, enable it in Word's ribbon settings.

2
Add a module

In the VBA editor, select Insert > Module and paste this code: Sub MoveCommentsToText() Dim i As Long Dim c As Comment Dim target As Range Dim commentText As String Dim oldScreenUpdating As Boolean oldScreenUpdating = Application.ScreenUpdating On Error GoTo CleanUp Application.ScreenUpdating = False For i = ActiveDocument.Comments.Count To 1 Step -1 Set c = ActiveDocument.Comments(i) commentText = c.Range.Text Do While Len(commentText) > 0 If Right$(commentText, 1) = vbCr Or Right$(commentText, 1) = Chr$(7) Then commentText = Left$(commentText, Len(commentText) - 1) Else Exit Do End If Loop Set target = c.Scope.Duplicate target.Collapse Direction:=wdCollapseEnd target.InsertAfter " " & commentText c.Delete Next i CleanUp: Application.ScreenUpdating = oldScreenUpdating If Err.Number <> 0 Then MsgBox "The macro stopped: " & Err.Description End Sub

3
Run the macro

Return to Word, select Developer > Macros, choose MoveCommentsToText, and select Run.

4
Review the document

Check the inserted text and spacing in the document and open the Comments pane to confirm which comments were removed.

Move multiple Word comments with a VBA macro
Macro access: VBA macros require desktop Word and may be blocked by your organization's security settings. If you cannot run the macro, move the comments manually.
Edit comments in WPS Writer

Move Comment Text into a Document with WPS Writer

Open your document in WPS Writer, copy each comment into the main text, and remove the original comment after checking its placement.

  1. 1. Open the document: Open WPS Writer and use Open to select your Word document.
  2. 2. Find a comment: Open the Review tab and display the document's comments, then select the comment you want to move.
  3. 3. Copy the comment: Select and copy the comment text, click after the associated passage in the document, and paste the text.
  4. 4. Delete and repeat: Select the original comment and use the Review tab's delete comment control. Repeat for other comments, then save the document.
Move comment content next to the passage it referencesOpen and edit Microsoft Word DOC and DOCX filesUse familiar document editing and review controlsEdit documents with the free WPS Office suite
microsoft office alternative - wps office

Frequently Asked Questions

Can I move comments without using a macro?

Yes. Open the Comments pane, copy a comment's text, and paste it after the associated passage. Then select the comment and use Review > Delete.

Does the macro replace the text that the comment refers to?

No. It inserts the comment text after the associated passage and then deletes the comment. Check the resulting spacing and placement.

Will the macro preserve comment formatting and author details?

No. The macro inserts plain comment text; it does not transfer comment formatting, author names, or timestamps into the document.

Why can't I run the VBA macro in Word?

The macro requires desktop Word and permission to run VBA. Check Developer > Macros and your organization's macro security settings, or use the manual copy-and-paste method.