J
John Keith
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/d...diacollectiongetattributestringcollection.asp
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/d...diacollectiongetattributestringcollection.asp