Partager via


AnimationSettings.SoundEffect Property (PowerPoint)

Returns a SoundEffect object that represents the sound to be played during the transition to the specified slide. REad-only.

Syntax

expression .SoundEffect

expression A variable that represents an AnimationSettings object.

Return Value

SoundEffect

Example

This example sets the file Bass.wav to be played whenever shape one on slide one in the active presentation is animated.

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

    .Animate = True

    .TextLevelEffect = ppAnimateByAllLevels

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

End With

See Also

Concepts

AnimationSettings Object Members

AnimationSettings Object