Check the number of comments

jmt356
SilverLounger
Posts: 2184
Joined: 28 Mar 2010, 01:49

Check the number of comments

Post by jmt356 »

Is it possible to check how many comments there are in a Word 365 file without manually counting each comment bubble?
Regards,

JMT

User avatar
HansV
Administrator
Posts: 72002
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Check the number of comments

Post by HansV »

Press Alt+F11 to activate the Visual Basic Editor
Press Ctrl+G to activate the Immediate window.
Type the following and press Enter:

Code: Select all

? ActiveDocument.Comments.Count
The number of comments will be shown in the line below.
Regards,
Hans

User avatar
Charles Kenyon
4StarLounger
Posts: 403
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: Check the number of comments

Post by Charles Kenyon »

This could be placed in a macro:

Code: Select all

Sub CountComments()
  MsgBox Prompt:= "The number of Comments is: " & ActiveDocument.Comments.Count
End Sub