Sub test()
Beep
End Su作者: abcdefgp06 時間: 2011-5-17 13:14 標題: VBA音效
Excel之VBA聲音警示使用音樂檔發聲
在宣告區宣告
Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long