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

Sequence.ConvertToAnimateBackground Method (PowerPoint)

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

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

NameRequired/OptionalData TypeDescription
EffectRequiredEffectThe animation effect to be applied to the background.
AnimateBackgroundRequiredMsoTriStateDetermines 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

© 2018 Microsoft