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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top