Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Play and PAUSE a wav file from Word VBA

Status
Not open for further replies.

ricaforrica

Programmer
Jun 30, 2005
65
PT
Hello people!

I want to have a menu and key shortcuts to play a wav sound file from Microsoft Word (2002). I checked the "sndPlaySound" function and played a wav, but I can't seem to pause or stop it!

Is there anyway to do this?

I thank anyone who could help me!
Best regards,

Ricardo Pinto.
 
Thanks Rob!

I've actually been there today, and it's the best site so far on this subject!

But it doesn't explain how to pause the sound file :(
(I couldn't find nothing about it there)...

I'll keep searching..
See ya!

Ricardo
 
Ricardo, you seem to be going to an awful lot of trouble, just to save switching to your other application to do the playing/pausing, while in Word. Why the obsession?

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Hey Glenn!

Well, what can I do? Some client wants to control the sound file from word! ;)

My company works in healthcare software, so I suppose people in the hospitals cannot loose time...

If you have some ideas for this, let me know!
Thanks for your concern, :)

Ricardo.
 
You can do it with MCI commands (rather than PlaySounds) ....but sheesh, I agree with Glenn.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top