TimeLine.MainSequence property (PowerPoint)

Returns a Sequence object that represents the collection of Effect objects in the main animation sequence of a slide.


expression. MainSequence

expression A variable that represents a TimeLine object.

Return value



The default value of the MainSequence property is an empty Sequence collection. Any attempt to return a value from this property without adding one or more Effect objects to the main animation sequence will result in a run-time error.


The following example adds a boomerang animation to a new shape on a new slide added to the active presentation.

Sub NewSequence()

    Dim sldNew As Slide
    Dim shpnew As Shape

    Set sldNew = ActivePresentation.Slides.Add(Index:=1, Layout:=ppLayoutBlank)
    Set shpnew = sldNew.Shapes.AddShape(Type:=msoShape5pointStar, _
        Left:=25, Top:=25, Width:=100, Height:=100)

    With sldNew.TimeLine.MainSequence.AddEffect(Shape:=shpnew, _
        .Timing.Speed = 0.5
        .Timing.Accelerate = 0.2
    End With

End Sub

See also

TimeLine Object

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.