Effect.Index property (PowerPoint)

Returns a Long that represents the index number for an animation effect or design. Read-only.

Syntax

expression.Index

expression A variable that represents an Effect object.

Return value

Long

Example

The following example displays the name and index number for all effects in the main animation sequence of the first slide.

Sub EffectInfo()

    Dim effIndex As Effect
    Dim seqMain As Sequence

    Set seqMain = ActivePresentation.Slides(1).TimeLine.MainSequence

    For Each effIndex In seqMain
        With effIndex
            MsgBox "Effect Name: " & .DisplayName & vbLf & _
                "Effect Index: " & .Index
        End With
    Next

End Sub

See also

Effect Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.