|
-
Jul 13th, 2009, 10:59 AM
#1
Thread Starter
Addicted Member
Play AVI in Excel
Hi,
I searched through this forum for Windows Media Player, but didn't find anything discussions about programming WMP. I can get the AVI to play in the worksheet but not able to control the size, position, and how it display. My assumption on enabling the variable "Windowlessvideo" is to play the video without frame or the media player box. Can it programs to play just the media without the look and feel of the Windows Media Player like within a range of cells?
Thanks in advance
Iat
Code:
Sub TestAVI()
Dim strFile As String
strFile = ThisWorkbook.Path & "\test.avi"
With WindowsMediaPlayer1
.Width = 200
.Height = 160
.windowlessVideo = False
.stretchToFit = False
End With
WindowsMediaPlayer1.URL = strFile
Do While WindowsMediaPlayer1.playState <> wmppsPlaying
DoEvents
Loop
End Sub
-
Jul 13th, 2009, 11:15 AM
#2
Re: Play AVI in Excel
Checkout the link in my signature It is for music player but that will set you in the right direction....
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|