Comment.Author property (PowerPoint)
Returns a String that represents the author as for a specified Comment object. Read-only.
Syntax
expression. Author
expression A variable that represents an Comment object.
Return value
String
Remarks
This property returns only the author's name. To return the author's initials, use the AuthorInitials property. Specify the author of a comment when you add a new comment to the presentation.
Example
The following example adds a comment to the first slide of the active presentation and then displays the author's name and initials in a message.
Sub GetAuthorName()
With ActivePresentation.Slides(1)
.Comments.Add Left:=100, Top:=100, Author:="Jeff Smith", _
AuthorInitials:="JS", _
Text:="This is a new comment added to the first slide."
MsgBox "This comment was created by " & _
.Comments(1).Author & " (" & .Comments(1).AuthorInitials & ")."
End With
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.