ActiveX Media Player Question

Z

ZipCurs

I copied the following code from a response by michelxld on 8/3/2005, and I
am trying to figure out why is does not work.

Option Explicit
Dim Wmp As WindowsMediaPlayer
'activate Windows Media Player reference

Sub jouerMediaPlayer()
Set Wmp = CreateObject("WMPlayer.OCX.7")
Wmp.URL = "C:\myfile info"
Wmp.Controls.Play
End Sub

I am using Excel 2007, and don't have a WMPlayer.OCX file. I tried both
msdxm.ocx and wmp.ocx, which I do have. The result is: "Run-time error '429'
ActiveX component can't create object." Any guidance on how to get this to
work would be appreciated.
 

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