1
Hello, I am making a virtual sound table for an event and would like to give the effect of clicking the button. I am making mega simple, but I need the button to be pressed while the music plays and when this ends the button release.
It’s like this:
Private Sub CAMPAINHA_Click()
CAMPAINHA.Visible = False
WindowsMediaPlayer1.URL = ActiveWorkbook.Path & "\SONS\CAMPAINHA.mp3"
CAMPAINHA.Visible = True
End Sub
This is the regular table:
So I’d like her to stay while she plays the music and in the end return to normal.
It’s a good method, but I found the
WindowsMediaPlayer1_StatusChange
put aIf WindowsMediaPlayer1.playState = wmppsMediaEnded Then
and it worked really well. Still, thank you very much.– Leandro Felipe Moreira
Cool, post your answer with the code for future reference and mark your answer as valid answer to help others who will come.
– Evert