返回一个 Long 表示给定作者的批注的索引号。 给定作者的第一个批注的索引号为 1,第二个批注的索引号为 2。 只读。
重要
此属性不适用于新式注释。
语法
expression。 AuthorIndex
表达 一个代表 Comment 对象的变量。
返回值
长型
示例
下面的示例提供有关给定幻灯片的作者及其批注索引的信息。
Sub GetCommentAuthorInfo()
    Dim cmtComment As Comment
    Dim strAuthorInfo As String
    With ActivePresentation.Slides(1)
        If .Comments.Count > 0 Then
            For Each cmtComment In .Comments
                strAuthorInfo = strAuthorInfo & "Comment Number:  " & _
                    cmtComment.AuthorIndex & vbLf & _
                    "Made by:  " & cmtComment.Author & vbLf & _
                    "Says:  " & cmtComment.Text & vbLf & vbLf
            Next cmtComment
        End If
    End With
    MsgBox "The comments for this slide are as follows: " & _
        vbLf & vbLf & strAuthorInfo
End Sub
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。