Written by Allen Wyatt (last updated January 10, 2026)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Word in Microsoft 365
Linda wonders if there is a way to count the number of words that are within the comments (and only the comments) in a document.
The easiest way to accomplish this task is to use a macro. This is because Word makes available to VBA a Comments collection which includes all of the comments in the document. All you need to do is to step through each comment and then look at the Count property for the Words collection for the comment, in this manner:
Sub CommentWordCount1()
Dim c As Comment
Dim lWords As Long
Dim sMsg As String
For Each c In ActiveDocument.Comments
lWords = lWords + c.Range.Words.Count
Next c
sMsg = "There are " & ActiveDocument.Comments.Count
sMsg = sMsg & " comments in the document. & vbCrLf & vbCrLf
sMsg = sMsg & "Word count: " & lWords
MsgBox sMsg
End Sub
If you prefer, you could also use the ComputeStatistics method to come up with the word counts, like this:
Sub CommentWordCount2()
Dim c As Comment
Dim lWords As Long
Dim sMsg As String
For Each c In ActiveDocument.Comments
lWords = lWords + c.Range.ComputeStatistics(wdStatisticWords)
Next c
sMsg = "There are " & ActiveDocument.Comments.Count
sMsg = sMsg & " comments in the document. & vbCrLf & vbCrLf
sMsg = sMsg & "Word count: " & lWords
MsgBox sMsg
End Sub
When you compare the results from the two macros, you may notice a difference in word counts. This is because of the way that the CompuStatistics method treats punctuation when doing its calculations. You'll want to compare the results and, based on the characteristics of the information in your comments, choose the approach that best suits your needs.
Note:
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13531) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Word in Microsoft 365.
Discover the Power of Microsoft Office This beginner-friendly guide reveals the expert tips and strategies you need to skyrocket your productivity and use Office 365 like a pro. Mastering software like Word, Excel, and PowerPoint is essential to be more efficient and advance your career. Simple lessons guide you through every step, providing the knowledge you need to get started. Check out Microsoft Office 365 For Beginners today!
Need to get rid of all the comments in your document that are added to your text? You can do so by using the regular Find ...
Discover MoreNeed to change the appearance of the text in your comments? It's easy to do using techniques you are already familiar with.
Discover MoreHave comments in your document? Want to get rid of them all? The easiest way to do so is going to depend on the ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2026 Sharon Parq Associates, Inc.
Comments