http://www.office68.com/excel/2919.html
用 Alt + F11 叫出程式碼視窗,加入這一段。
Private Declare Function sndPlaySound32 _
Lib "winmm.dll" _
Alias "sndPlaySoundA" ( _
ByVal lpszSoundName As String, _
ByVal uFlags As Long) As Long
用 sndPlaySound32 "C:\tmp\CASHREG.wav", 0& 可以播放聲音檔。
沒有留言:
張貼留言