Hello I am trying to use the activex windows media player control "IntroVideo" on workhsheet "Standards" but I keep getting "method or data member not found" I have verified all the names are corroct. Does anyone have any ideas?
Option Explicit
Dim ws As Worksheet
Dim wb As Workbook
Private Sub Workbook_Open()
'MsgBox "Welcome"
Set wb = ActiveWorkbook
Set ws = wb.Worksheets("Standards")
With ws.Introvideo 'Windowsmediaplayercontrol
.StartUpPosition = 0
.Left = Application.Left + (0.5 * Application.Width) - (0.5 * .Width)
.Top = Application.Top + (0.5 * Application.Height) - (0.5 * .Height)
.Show
.Play
End With
End Sub
Option Explicit
Dim ws As Worksheet
Dim wb As Workbook
Private Sub Workbook_Open()
'MsgBox "Welcome"
Set wb = ActiveWorkbook
Set ws = wb.Worksheets("Standards")
With ws.Introvideo 'Windowsmediaplayercontrol
.StartUpPosition = 0
.Left = Application.Left + (0.5 * Application.Width) - (0.5 * .Width)
.Top = Application.Top + (0.5 * Application.Height) - (0.5 * .Height)
.Show
.Play
End With
End Sub