Share via


Design.Index Property

PowerPoint Developer Reference

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

Syntax

expression.Index

expression   A variable that represents a Design 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.

Visual Basic for Applications
  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