Class Comment (Word VBA)
The class Comment represents a single comment. The Comment object is a member of the Comments collection. The Comments collection includes comments in a selection, range or document.
Dim cmm as Comment
Set cmm = Selection.Comments(Index:=1)
For Each
Here is an example of processing the Comment items in a collection.
Dim cmmReply As Comment
For Each cmmReply In Selection.Replies
Next cmmReply
Methods
DeleteRecursively - Deletes the specified comment and all replies associated with it.
Edit - Opens the specified OLE object for editing in the application it was created in.
Properties
Ancestor for comments that are replies to existing comments, returns the parent Comment object; for new (top-level) comments, returns Nothing.
Contact returns a CoAuthor object that represents the author of the specified comment.
Date returns a Date that represents the date and time that a comment was inserted.
Done returns or sets a Boolean whose value is True if the specified comment has been marked closed.
Index returns a Long that represents the position of an item in a collection.
IsInk returns a Boolean that represents whether a comment is a handwritten comment.
Range returns a Range object that represents the contents of a comment.
Reference returns a Range object that represents a reference mark for a comment.
Replies returns a Comments collection of Comment objects that are children of the specified comment.
Scope returns a Range object that represents the range of text marked by the specified comment.
Related Classes
CoAuthor - Represents a single co author in the document. The CoAuthor object is a member of the CoAuthors collection. The CoAuthors collection contains all the co authors in the document (authors that are actively editing the document).
Comments - A collection of Comment objects that represent the comments in a selection, range, or document.
Range - Represents a contiguous area in a document. Each Range object is defined by a starting and ending character position.