共用方式為


AnimationSettings.ChartUnitEffect 屬性 (PowerPoint)

會傳回或設定值,指出圖表範圍是依數列、類別或元素製作動畫。 讀取/寫入。

語法

expressionChartUnitEffect

一個代表 AnimationSettings 物件的變數。

傳回值

PpChartUnitEffect

註解

如果您的圖表尚未成為動畫,請確定 動畫 屬性設為 True

ChartUnitEffect 屬性的值可以是下列其中一個 PpChartUnitEffect 常數。

ppAnimateByCategory
ppAnimateByCategoryElements
ppAnimateBySeries
pp動畫化系列元素
ppAnimateChartAllAtOnce
ppAnimateChartMixed

範例

這則範例會將使用中簡報第三張投影片上的第二個圖案設定為依數列設定動畫。 第二個圖案必須是圖表才會發生作用。

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

    With .AnimationSettings

        .ChartUnitEffect = ppAnimateBySeries

        .EntryEffect = ppEffectFlyFromLeft

        .Animate = True

    End With

End With

另請參閱

AnimationSettings 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應