Play Sound with CommandButton

  • Thread starter thomas.schoenfelder
  • Start date
T

thomas.schoenfelder

How can I play a wav file when a CommandButton from the Control Toolbox
is clicked

I've tried this but didn't work because CommandButtons don't accept
action Settings

ActivePresentation.Slides("Slide1").Shapes("CommandButton1").ActionSettings(ppMouseClick).SoundEffect.ImportFromFile
"MyWave.wav"
 
A

Austin Myers

Why are you using a control (command button) instead of a PPT object (many
available in the drawing tool bar)?



Austin Myers
MS PowerPoint MVP Team

PowerPoint Video and PowerPoint Sound Solutions www.pfcmedia.com
 
T

thomas.schoenfelder

I'm using this Button click event to blank out textboxes and manipulate
other shapes.
All I want is to play a sound when the textboxes (drawing tool bar)
disappear.
so i thought it's easiest to just run a soundplay macro when the button
is clicked
 
Top