Windows media player

  • Thread starter Thread starter kalle
  • Start date Start date
K

kalle

Hi!

I have added WMP on a userform but I can't find out how to start a .wmv
file.

I have tryed this code without any success.

Private Sub UserForm_Initialize()
UserForm1.WindowsMediaPlayer1.settings.autoStart = True
UserForm1.WindowsMediaPlayer1.settings.volume = "90"
UserForm1.WindowsMediaPlayer1.currentPlaylist.Clear
UserForm1.WindowsMediaPlayer1.URL = "C:\Users\Public\Videos\Sample
Videos\somefile.wmv"
End Sub

Is thier someone who can help me.

Thanks in advance
 
This is probably not very helpful, but I tried your code applied a valid wmv
file name and it works ok for me.

Using xl2007 SP1; on Vista
 
Back
Top