PowerPoint) (Comment.AuthorInitials 屬性

傳回作者的縮寫成為唯讀 字串 指定的 Comment 物件。 唯讀。

語法

expression。 AuthorInitials

運算式 代表 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

另請參閱

Comment 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。