Comment.Author Property
Returns a String that represents the author as for a specified Comment object. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property Author As String
Get
'Usage
Dim instance As Comment
Dim value As String
value = instance.Author
string Author { get; }
Property Value
Type: System.String
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.
Examples
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