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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.