Table of contents
TOC
Collapse the table of content
Expand the table of content

Comment.AuthorInitials Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns the author's initials as a read-only String for a specified Comment object. Read-only.

Syntax

expression. AuthorInitials

expression A variable that represents an Comment object.

Return Value

String

Remarks

This property only returns the author's initials. To return the author's name use the Author property. Specify the author's initials when you add a new comment to the presentation.

Example

The following example returns the author's initials for a specified comment.

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 .Comments(1).Author &; .Comments(1).AuthorInitials
    End With

End Sub

See also

Concepts

Comment Object

© 2017 Microsoft