- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 1# ¦Û§Ú·Pı¨}¦n
©ñ¸m©ó ThisWorkbook µ{¦¡°Ï¤º¡G- Option Explicit
- #If VBA7 Then
- Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
- #Else
- Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
- #End If
- Sub playAll()
- Dim cts As Integer
- Dim MyPlayer As WindowsMediaPlayer
-
- Set MyPlayer = Sheet1.WindowsMediaPlayer1
- For cts = 1 To 33
- MyPlayer.URL = ThisWorkbook.Path & "\mp4\" & CStr(cts) & ".mp4"
-
- DoEvents
- MyPlayer.Controls.Play
-
- Do While MyPlayer.playState <> 1
- Sleep 100
- DoEvents
- Loop
-
- DoEvents
- Next cts
- End Sub
½Æ»s¥N½X |
|