Comment Members (Word)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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.

Methods

Name

Description

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

Name

Description

Ancestor

For comments that are replies to existing comments, returns the parent Comment object; for new (top-level) comments, returns null. Read-only.

Application

Returns an Application object that represents the Microsoft Word application.

Contact

Returns a CoAuthor object that represents the author of the specified comment. Read-only.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.

Date

Returns a Date that represents the date and time that a comment was inserted. Read-only.

Done

Returns or sets a Boolean whose value is true if the specified comment has been marked closed. Read-write.

Index

Returns a Long that represents the position of an item in a collection. Read-only.

IsInk

Returns a Boolean that represents whether a comment is a handwritten comment.

Parent

Returns an Object that represents the parent object of the specified Comment object.

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. Read-only.

Scope

Returns a Range object that represents the range of text marked by the specified comment.