Embed WMPlayer in excel

M

MrPerkinsExcel

Hi All

In the "Control Toolbox" menu,I see it is possible to embed a mini Windows
Media Player within an Excel worksheet (from the hammer and spanner, MORE
CONTROLS).

I have embedded the player but cannot get it to work.

Can someone assist??? I believe the VBA code needs to be tailored
specifically in order to achieve my goal.
 
C

Chirag

I did the following to get the player to work:
1. Right-click on the player shape and select "Properties" menu item.
2. Click the ellipsis (...) in the "(Custom)" property.
3. Provide the movie file name and click OK. (You might want to clear the
"auto start" checkbox).
4. Double-click on the shape to enter VBA editor.
5. Enter the following sub there:

---
Sub PlayVideo()
WindowsMediaPlayer1.Controls.Play
End Sub
---

6. Stay inside this sub and run it (press F5).
7. Your video should now start playing. All WMP controls are also active.

I was able to activate it but I am not able to go back to previous state.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top