Edit

Sequence.Clone method (PowerPoint)

Creates a copy of an Effect object, and adds it to the Sequences collection at the specified index position.

Syntax

expression. Clone( _Effect_, _Index_ )

expression A variable that represents a Sequence object.

Parameters

Name Required/Optional Data type Description
Effect Required Effect Effect object. The animation effect to be cloned.
Index Optional Long The position at which the cloned animation effect will be added to the Sequences collection. The default value is -1 (added to the end).

Return value

Effect

Example

This example copies an animation effect. This example assumes an animation effect named "effDiamond" exists.

Sub CloneEffect()
    ActivePresentation.Slides(1).TimeLine.MainSequence _
        .Clone Effect:=effDiamond, Index:=-1
End Sub

See also

Sequence 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.