View Single Post
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
teepee[_3_] teepee[_3_] is offline
external usenet poster
 
Posts: 107
Default Media player in active X

Quick question if I may...

I need to play two simultaneous sound files in Excel, and as I cannot have
two userforms at the same time, I'm trying to have one play as a userform in
mediaplayer and the other play as a windos media player ActiveX object
embedded into the sheet (using Office 2007).

However when I try to instruct the windows media player to begin playing
it's file it hits a bug and refuses to budge. Am I attempting the impossible
or just missing the obvious?

Many thanks



Private Sub UserForm_Activate()

Dim Mfile As String
Mfile = "c:\video\crowd.wav"
MP.Open (Mfile)

WindowsMediaPlayer1.URL = "c:\video\crowdup.wav"