View Single Post
 
Old 04-28-2013, 06:51 AM
Boo Boo is offline Windows XP Office 2007
Novice
 
Join Date: Mar 2013
Posts: 9
Boo is on a distinguished road
Default Windows Media Player

Would someone explain why the following code creates a runtime error

Private Sub CommandButton1_Click()
Worksheets("Sheet2").Activate
Dim wmp7 As WindowsMediaPlayer
Set wmp7 = CreateObject("WMPlayer.OCX.7")
End Sub

The error is
-----------
Run-time error"-214467259(80004005)':
Automation error
Unspecified error

I could add the WMP on a worksheet mannually.
Thanks
Reply With Quote