Share via


Sequence.ConvertToAnimateBackground Method (PowerPoint)

Determines whether the background will be animated separately from, or in addition to, its accompanying text. Returns an Effect object representing the newly-modified animation effect.

Syntax

expression .ConvertToAnimateBackground(Effect, AnimateBackground)

expression A variable that represents a Sequence object.

Parameters

Name

Required/Optional

Data Type

Description

Effect

Required

Effect

The animation effect to be applied to the background.

AnimateBackground

Required

MsoTriState

Determines whether the text will be animated separately from the background.

Return Value

Effect

Example

This example creates a text effect for the first shape on the first slide in the active presentation, and animates the text in the shape separately from the background. This example assumes there is a shape on the first slide, and that the shape has text inside it.

Sub AnimateText()



    Dim timeMain As TimeLine

    Dim shpActive As Shape



    Set shpActive = ActivePresentation.Slides(1).Shapes(1)

    Set timeMain = ActivePresentation.Slides(1).TimeLine



    ' Add a blast effect to the text, and animate the text separately

    ' from the background.

    timeMain.MainSequence.ConvertToAnimateBackground _

        Effect:=timeMain.MainSequence.AddEffect(Shape:=shpActive, _

            effectid:=msoAnimEffectBlast), _

        AnimateBackGround:=msoFalse



End Sub

See Also

Concepts

Sequence Object Members

Sequence Object