Article ID: 158140
Article Last Modified on 10/10/2006
'This function declaration must be entered onto a single line.
Declare Function sndPlaySound32 Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Sub PlaySound()
If Application.CanPlaySounds Then
'Substitute the path and filename of the sound you want to play
Call sndPlaySound32("c:\win95\media\chimes.wav", 0)
End If
End Sub
You can replace C:\Win95\Media\Chimes.wav with any valid wave file.
156200 XL97: Sounds Not Converted with Cell Notes
Additional query words: XL97 xl7 8.00 api XL
Keywords: kbdtacode kbprogramming KB158140