Share via


Comment.Author Property

Word Developer Reference

Returns or sets a String that represents the author name for a comment. Read/write.

Syntax

expression.Author

expression   Required. A variable that represents a Comment object.

Example

This example sets the author name and initials for the first comment in the active document.

Visual Basic for Applications
  If ActiveDocument.Comments.Count >= 1 Then
    With ActiveDocument.Comments(1)
        .Author = "Joe Smith"
        .Initial = "JAS"
    End With
End If

This example returns the author name for the first comment in the selection.

Visual Basic for Applications
  Dim strAuthor as String

If Selection.Comments.Count >= 1 Then _ strAuthor = Selection.Comments(1).Author

See Also