Share via


Effect.DisplayName Property

PowerPoint Developer Reference

Returns the name of an animation effect. Read-only.

Syntax

expression.DisplayName

expression   A variable that represents a Effect object.

Return Value
String

Example

This example displays the name for the first animation sequence of the first slide's main animation sequence timeline.

Visual Basic for Applications
  Sub DisplayEffectName()
    Dim effMain As Effect
    Set effMain = ActivePresentation.Slides(1).TimeLine.MainSequence(1)
    MsgBox effMain.DisplayName
End Sub

See Also