Table of contents
TOC
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.

Syntax

expression. MotionEffect

expression A variable that represents an AnimationBehavior object.

Return Value

MotionEffect

Example

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) _
            .Behaviors.Add(msoAnimTypeMotion).MotionEffect
        .FromX = 100
        .FromY = 100
        .ToX = 0
        .ToY = 0
    End With

End Sub

See also

Concepts

AnimationBehavior Object

© 2018 Microsoft