共用方式為


AnimationSettings.SoundEffect 屬性 (PowerPoint)

會傳回代表對指定的投影片切換時播放音效的 SoundEffect 物件。 唯讀的。

語法

expressionSoundEffect

表達 代表 AnimationSettings 物件的 變數。

傳回值

SoundEffect

範例

在這個範例中,會設定每當使用中簡報第一張投影片上第一個圖案顯示動畫效果時,就播放 Bass.wav 檔。

With ActivePresentation.Slides(1).Shapes(1).AnimationSettings

    .Animate = True

    .TextLevelEffect = ppAnimateByAllLevels

    .SoundEffect.ImportFromFile "c:\bass.wav"

End With

另請參閱

AnimationSettings 物件

支援和意見反應

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