AnimateBackground Property

Applies To

AnimationSettings object.

Description

If the specified object is an AutoShape, True if the shape is animated separately from the text it contains. If the specified shape is a graph object, True if the background (the axes and gridlines) of the specified graph object is animated. Applies only to AutoShapes with text that can be built in more than one step or to graph objects. Read/write Long.

Remarks

Use the TextLevelEffect and TextUnitEffect properties to control the animation of text attached to the specified shape.

If this property is set to True and the TextLevelEffect property is set to ppAnimateByAllLevels, the shape and its text will be animated simultaneously. If this property is set to True and the TextLevelEffect property is set to anything other than ppAnimateByAllLevels, the shape will be animated immediately before the text is animated.

Note You won't see effects of setting this property unless the specified shape is animated. For a shape to be animated, the TextLevelEffect property of the AnimationSettings object for the shape must be set to something other than ppAnimateLevelNone and the Animate property must be set to True.

Example

This example creates a rectangle that contains text. The example then specifies that the shape should fly in from the lower right, that the text should be built from first-level paragraphs, and that the shape should be animated separately from the text it contains.

With ActivePresentation.Slides(1).Shapes.AddShape(msoShapeRectangle, _
    50, 50, 200, 300)
    .TextFrame.TextRange = "Reason 1" & Chr(13) & "Reason 2" & _ 
        Chr(13) & "Reason 3"
    With .AnimationSettings
        .EntryEffect = ppEffectFlyFromBottomRight
        .TextLevelEffect = ppAnimateByFirstLevel
        .TextUnitEffect = ppAnimateByParagraph
        .AnimateBackground = True
        .Animate = True
    End With
End With