How to play two sound in one excel

Occasional Contributor

Hi,

 

Can any one please let me know how to play 2 different sounds at once using VBA.

 

I have the below code which only helps me in playing 1 sound

 

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

Function SoundMe() As String
Call PlaySound("c:\low.wav", _
0, SND_ASYNC Or SND_FILENAME)
SoundMe = ""
End Function


Thanks

Tushar Kaushik

0 Replies