ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to "Stop Playing" wave files (https://www.excelbanter.com/excel-programming/282026-macro-stop-playing-wave-files.html)

yo beee

Macro to "Stop Playing" wave files
 
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 Ogilvy

Macro to "Stop Playing" wave files
 
What I suggested didn't work or you didn't see the answer?

--
Regards,
Tom Ogilvy

"yo beee" wrote in message
...
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





yo beee

Macro to "Stop Playing" wave files
 
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


"Tom Ogilvy" wrote in message
...
What I suggested didn't work or you didn't see the answer?

--
Regards,
Tom Ogilvy

"yo beee" wrote in message
...
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









All times are GMT +1. The time now is 11:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com