Button for wave file
Hi:
Declare Function PlaySound Lib "winmm.dll" _
Alias "PlaySoundA" (ByVal lpszName As String, _
ByVal hModule As Long, _
ByVal dwFlags As Long) As Long
Sub PlayMe()
Dim retval As Long
retval = PlaySound("C:\user\Book\chord.wav", 0, &H20000)
End Sub
Regards,
Vasant.
"yo beee" wrote in message
...
Hey all,
Thanks to all programmers who help us newbies out all the time. You
are
invaluable. I'm sure this issue has been here before but here goes.
I need a command button to play a wave file. My wave file is called
"chord.wav" and resides in the following directory: "C:\user\Book" My
Excel
workbook resides in the same directory and is called "MNB.xls" The user
hits
the button and the wave file plays. That's it.
TIA
|