Hello,
I'm currently using the below code to which plays a .wav file on command:
Can some one please tell me how I can add/amend this code to play another (seperate) .wav file? I tried to add another module and changed the Sub to "PlayWAV2" with no luck.
Thanks.
I'm currently using the below code to which plays a .wav file on command:
Code:
Option Explicit
Private Declare Function PlaySound Lib "winmm.dll" _
Alias "PlaySoundA" (ByVal lpszName As String, _
ByVal hModule As Long, ByVal dwFlags As Long) As Long
Const SND_SYNC = &H0
Const SND_ASYNC = &H1
Const SND_FILENAME = &H20000
Sub PlayWAV()
Dim WAVFile As String
WAVFile = "FOXNFL.wav"
WAVFile = "S:\FMS\FMS\Templates\Sheets\Playbook\FOXNFL.wav"
Call PlaySound(WAVFile, 0&, SND_ASYNC Or SND_FILENAME)
End Sub
Can some one please tell me how I can add/amend this code to play another (seperate) .wav file? I tried to add another module and changed the Sub to "PlayWAV2" with no luck.
Thanks.