Compartir a través de


Comment.Author Property (Word)

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.

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.

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

See Also

Concepts

Comment Object

Comment Object Members