AuthorInitials 属性

       

以只读 String 的形式返回指定 Comment 对象的作者姓和名的首字母。只读。

expression.AuthorInitials

expression  必选。该表达式返回“应用于”列表中的对象之一。

说明

此属性只返回作者姓和名的首字母。若要返回作者的姓名,请使用 Author 属性。在向演示文稿中添加新的批注时指定作者姓和名的首字母。

示例

以下示例返回指定批注的作者姓和名的首字母。

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