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
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for