共用方式為


AnimationBehaviors 物件 (PowerPoint)

代表 AnimationBehavior 物件的集合。

範例

使用Add方法新增動畫行為。 下列範例會將五秒鐘動畫的旋轉行為新增至第一張投影片上的主要動畫順序。

Sub AnimationObject()

    Dim timeMain As TimeLine



    'Reference the main animation timeline

    Set timeMain = ActivePresentation.Slides(1).TimeLine



    'Add a five-second animated rotation behavior

    'as the first animation in the main animation sequence

    timeMain.MainSequence(1).Behaviors.Add Type:=msoAnimTypeRotation, Index:=1

End Sub

另請參閱

PowerPoint 物件模型參考資料

支援和意見反應

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