Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default 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.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Media player in active X teepee[_3_] Excel Discussion (Misc queries) 16 October 28th 08 10:46 PM
Controlling media player in VBA question teepee Excel Discussion (Misc queries) 3 April 14th 07 04:56 PM
Controlling media player in VBA question teepee Excel Programming 3 April 14th 07 04:56 PM
Media Player versus Windows Media Player teepee[_4_] Excel Programming 6 October 15th 05 06:16 PM
Media Player versus Windows Media Player teepee Excel Discussion (Misc queries) 1 October 14th 05 02:25 AM


All times are GMT +1. The time now is 05:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"