ActiveX Media Player Question
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.
|