Thread
:
Playing a sound file from Excel
View Single Post
#
6
Posted to microsoft.public.excel.programming
Michel Pierron
external usenet poster
Posts: 214
Playing a sound file from Excel
Hi Larry;
(sFile = Full name of wma file)
Private Sub WMAPlay(sFile$)
If Len(Dir(sFile)) < 8 Then Exit Sub
CreateObject("WMPlayer.OCX").URL = sFile
End Sub
MP
"Larry" a écrit dans le message de news:
...
Here's what I'm trying to do - any help is appreciated.
I have an Excel workbook with several worksheets. I want an audio file
(in
.wma format) to start playing when I activate a worksheet. I've been able
to
play a .wav file using the sndPlaySound32 dll but it doesn't seem to work
with a .wma file.
Any suggestions??
Thanks in advance,
Larry
Reply With Quote
Michel Pierron
View Public Profile
Find all posts by Michel Pierron