View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Nigel[_2_] Nigel[_2_] is offline
external usenet poster
 
Posts: 735
Default Windows media player

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

--

Regards,
Nigel




"kalle" wrote in message
...


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.Clea r
UserForm1.WindowsMediaPlayer1.URL = "C:\Users\Public\Videos\Sample
Videos\somefile.wmv"
End Sub

Is thier someone who can help me.

Thanks in advance

*** Sent via Developersdex
http://www.developersdex.com ***