SoundEffect Property
Applies To
ActionSetting object, AnimationSettings object, SlideShowTransition object.
Description
ActionSetting object: Returns a SoundEffect object that represents the sound to be played when the specified shape is clicked or the mouse pointer passes over the shape. If you don't hear the sound that you assigned to the shape when you run the slide show, make sure that the TextLevelEffect property is set to a value other than ppAnimateLevelNone and that the Animate property is set to True. Read-only.
AnimationSettings object: Returns a SoundEffect object that represents the sound to be played during the animation of the specified shape. Read-only.
SlideShowTransition object: Returns a SoundEffect object that represents the sound to be played during the transition to the specified slide. Read-only.
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:\sndsys\bass.wav"
End With