bruno2k_ad34
New Member
- Joined
- Oct 27, 2018
- Messages
- 3
hi,
can you please help me to understand this issue and correct it?
i´ve addapted code to play sounds and it works fine if the mp3 file is placed at
C:\Users\Bruno Andrade\Music\
Sub M_02SomNiv2()
Dim play As String
play = """C:\Users\Bruno Andrade\Music\som02-Niv2.mp3"""
Shell "C:\Program Files\Windows Media Player\wmplayer /play " & play, False
End Sub
however, if i want to place the files at the current folder (the same as open excel), it doesn´t play any sound.
Sub M_01SomNiv2()
Dim play As String
play = ThisWorkbook.Path & "\som02-Niv2.mp3"'only this line changed
Shell "C:\Program Files\Windows Media Player\wmplayer /play " & play, False
End Sub
what´s wrong? please help me.
thanks
Bruno
can you please help me to understand this issue and correct it?
i´ve addapted code to play sounds and it works fine if the mp3 file is placed at
C:\Users\Bruno Andrade\Music\
Sub M_02SomNiv2()
Dim play As String
play = """C:\Users\Bruno Andrade\Music\som02-Niv2.mp3"""
Shell "C:\Program Files\Windows Media Player\wmplayer /play " & play, False
End Sub
however, if i want to place the files at the current folder (the same as open excel), it doesn´t play any sound.
Sub M_01SomNiv2()
Dim play As String
play = ThisWorkbook.Path & "\som02-Niv2.mp3"'only this line changed
Shell "C:\Program Files\Windows Media Player\wmplayer /play " & play, False
End Sub
what´s wrong? please help me.
thanks
Bruno