Windows media player

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
 
N

Nigel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top