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

Timing.RewindAtEnd Property (PowerPoint)

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

Represents whether an object returns to its beginning position after an animation has ended. Read/write.

Syntax

expression. RewindAtEnd

expression A variable that represents a Timing object.

Return Value

MsoTriState

Remarks

The value of the RewindAtEnd property can be one of these MsoTriState constants.

ConstantDescription
msoFalseThe object does not return to its beginning position after an animation has ended.
msoTrueThe object returns to its beginning position after an animation has ended.

Example

The following example adds a shape and an animation to the shape, then instructs the shape to return to its beginning position after the animation has ended.

Sub AddShapeSetTiming()

    Dim effDiamond As Effect
    Dim shpRectangle As Shape

    'Adds shape and sets animation effect

    Set shpRectangle = ActivePresentation.Slides(1).Shapes _
        .AddShape(Type:=msoShapeRectangle, Left:=100, _
        Top:=100, Width:=50, Height:=50)

    Set effDiamond = ActivePresentation.Slides(1).TimeLine.MainSequence _
        .AddEffect(Shape:=shpRectangle, effectId:=msoAnimEffectPathDiamond)

    'Sets duration of animation and returns shape to its original position

    With effDiamond.Timing
        .Duration = 3
        .RewindAtEnd = msoTrue
    End With

End Sub

See also

Concepts

Timing Object

© 2018 Microsoft