View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett[_4_] Don Guillett[_4_] is offline
external usenet poster
 
Posts: 2,337
Default Playing sounds on opening a worksheet or shortcut

try this idea

Option Private Module
Declare Function sndPlaySound Lib "WINMM.DLL" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

Sub playit()
SoundName$ = "c:\yourfolder\yourwavefilenam.wav"
wFlags% = SND_ASYNC Or SND_NODEFAULT
x% = sndPlaySound(SoundName$, wFlags%)
End Sub


--
Don Guillett
SalesAid Software

"MusicusMalus" wrote in message
...
How do I link a specific wav file to a file so that when it is opened, the
sound plays for that file only.