LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default How do I run WMP as an ActiveX object from Excel-VBA

What is the syntax to create/run WMP as an ActiveX Object from VBA or
VB-Script?
All of the examples I find are in javascript and I cant seem to get it to
work in VB.

on a discussion thread about Windows Media Player I found this info:
You'll need to run it as an ActiveX object in VB, for which you need
the ProgID : I think it could be WMPlayer.OCX.7 : It'll be in your
registry, search for a value of 6bf52a52-394a-11d3-b153-00c04f79faa6
and look at the ProgID

I did look in my resistry and WMPlayer.OCX.7 is the correct ProgId, but how
do you bind that so that I can explore the object model using the VB
debugging tool inside excel (since this is the only one I am familiar with).
I have found the info on how to request access rights to be able to update
the WMP objects. But they ALL assume you have already bound the model.
There was also an IMPORTS statement that looks like its purpose is to tell
VBA about the WMP object model. But I think that is a .net only statement
(I'm running Excel2002) and I cant find any info on how it was done before
..net.

Link to the object model I'm trying to use:
http://msdn.microsoft.com/library/de...collection.asp

--
Regards,
John
 
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
How to kill an ActiveX object Django Cat[_2_] Excel Discussion (Misc queries) 3 November 8th 07 07:45 PM
Activex component can't create object Naveen New Users to Excel 1 September 4th 07 02:57 PM
429 ActiveX can't create the object CA Excel Programming 2 March 29th 05 03:49 PM
Debug ActiveX object Carlos[_2_] Excel Programming 2 March 5th 04 09:40 PM
activex component can't create object with SAP 6.20 Mark Bigelow Excel Programming 0 July 22nd 03 06:24 PM


All times are GMT +1. The time now is 10:19 PM.

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

About Us

"It's about Microsoft Excel"