Partager via


AnimationSettings.ChartUnitEffect Property (PowerPoint)

Returns or sets a value that indicates whether the graph range is animated by series, category, or element. Read/write.

Syntax

expression .ChartUnitEffect

expression A variable that represents a AnimationSettings object.

Return Value

PpChartUnitEffect

Remarks

If your graph doesn't become animated, make sure that the Animate property is set to True

The value of the ChartUnitEffect property can be one of these PpChartUnitEffect constants.

ppAnimateByCategory

ppAnimateByCategoryElements

ppAnimateBySeries

ppAnimateBySeriesElements

ppAnimateChartAllAtOnce

ppAnimateChartMixed

Example

This example sets shape two on slide three in the active presentation to be animated by series. Shape two must be a graph for this to work.

With ActivePresentation.Slides(3).Shapes(2)

    With .AnimationSettings

        .ChartUnitEffect = ppAnimateBySeries

        .EntryEffect = ppEffectFlyFromLeft

        .Animate = True

    End With

End With

See Also

Concepts

AnimationSettings Object

AnimationSettings Object Members