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




Reply With Quote