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