Table of contents
TOC
Collapse the table of content
Expand the table of content

Effect.Index Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

Concepts

Effect Object

© 2018 Microsoft