Macro to "Stop Playing" wave files

  • Thread starter Thread starter yo beee
  • Start date Start date
Y

yo beee

I am trying to get a macro to stop playing all wave files that might be
already playing in the background. Any ideas?
TIA
yobeee
 
Tom,
Thanks for your response. Yeah, it did not work and the post was gone on
my end so I thought I would just repost. I appreciate your help.
Unfortunately, your code did not work. I guess it is possible I did
something wrong on my end but I don't think so. Below is the code you
suggested. Any other suggestions would be helpful and very much appreciated.
yobeee

Sub StopMe1()
Const SND_PURGE = &H40
Dim retval As Long
retval = PlaySound(vbNullString, _
0, SND_PURGE = &H40)
End Sub
 

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

Back
Top