Effect.MoveBefore method (PowerPoint)
Moves one animation effect to before another animation effect.
Syntax
expression. MoveBefore
( _Effect_
)
expression A variable that represents an Effect object.
Example
The following example moves one effect in front of another one.
Sub MoveEffect()
Dim effOne As Effect
Dim effTwo As Effect
Dim shpFirst As Shape
Set shpFirst = ActivePresentation.Slides(1).Shapes(1)
Set effOne = ActivePresentation.Slides(1).TimeLine.MainSequence.AddEffect _
(Shape:=shpFirst, effectId:=msoAnimEffectBlinds)
Set effTwo = ActivePresentation.Slides(1).TimeLine.MainSequence.AddEffect _
(Shape:=shpFirst, effectId:=msoAnimEffectBlast)
effTwo.MoveBefore Effect:=effOne
End Sub
See also
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for