Table of contents
Collapse the table of content
Expand the table of content

AnimationBehavior.MotionEffect Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Returns a MotionEffect object that represents the properties of a motion animation.


expression. MotionEffect

expression A variable that represents an AnimationBehavior object.

Return Value



This example adds a new motion behavior to the first slide's main sequence that moves the specified animation sequence from one side of the page to the shape's original position.

Sub NewMotion()

    With ActivePresentation.Slides(1).TimeLine.MainSequence(1) _
        .FromX = 100
        .FromY = 100
        .ToX = 0
        .ToY = 0
    End With

End Sub

See also


AnimationBehavior Object

© 2018 Microsoft