Microsoft Word Suite
192
Use Word comment index, where index is the index number, to return a single Word comment
object. The index number represents the position of the comment in the specified selection, range, or
document. The following example displays the author of the first comment in the active document.
display dialog (get author of Word comment 1 of active document)
To add a comment at the specified range, use the make command. The following example adds a
comment immediately after the selection.
collapse range text object of selection direction collapse end
make new Word comment at selection with properties ¬
{comment text:"review this"}
To return the reference mark associated with the specified comment, use the note reference property.
To return the text associated with the specified comment, use the comment text property. The
following example displays the text associated with the first comment in the active document.
display dialog (get content of comment text of Word comment 1 ¬
of
active
document)
Properties
author
Returns or sets the author name for a comment. Read/write.
comment index
Returns a number that indicates the position of the Word comment in the Word comments list.
Read-only.
comment text
Returns a text range object that represents the portion of a document that's contained in the
specified object. Read-only.
initials
Returns or sets the initials of the user associated with a specific comment. Read/write.
note reference
Returns a text range object that represents a comment reference mark. Read-only.
scope
Returns a text range object that represents the range of text marked by the specified comment.
Read-only.
show tip
True if text associated with a comment is displayed in a screen tip. The screen tip remains
displayed until you click the mouse or press a key. Read/write.