Propiedad Comment.AuthorIndex (PowerPoint)

Devuelve un Long que representa el número de índice de un comentario para un autor específico. Al primer comentario de un autor específico tiene un número de índice de 1, el segundo comentario un número de índice 2. Solo lectura.

Importante

Esta propiedad no funciona con comentarios modernos.

Sintaxis

expresión. AuthorIndex

Expresión Variable que representa un objeto Comment .

Valor devuelto

Long

Ejemplo:

En el siguiente ejemplo se muestra la información sobre los autores y los índices de sus comentarios de una diapositiva específica.

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

Consulte también

Objeto Comment

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.