ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

·Q¨ì¦Û¾Ç­^»yªº²Â²Â¤èªk

¦^´_ 1# ¦Û§Ú·Pı¨}¦n
©ñ¸m©ó ThisWorkbook µ{¦¡°Ï¤º¡G
  1. Option Explicit

  2. #If VBA7 Then
  3.     Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
  4. #Else
  5.     Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
  6. #End If

  7. Sub playAll()
  8.     Dim cts As Integer
  9.     Dim MyPlayer As WindowsMediaPlayer
  10.    
  11.     Set MyPlayer = Sheet1.WindowsMediaPlayer1

  12.     For cts = 1 To 33
  13.         MyPlayer.URL = ThisWorkbook.Path & "\mp4\" & CStr(cts) & ".mp4"
  14.         
  15.         DoEvents
  16.         MyPlayer.Controls.Play
  17.                     
  18.         Do While MyPlayer.playState <> 1
  19.             Sleep 100
  20.             DoEvents
  21.         Loop
  22.         
  23.         DoEvents
  24.     Next cts
  25. End Sub
½Æ»s¥N½X

TOP

¦^´_ 3# ¦Û§Ú·Pı¨}¦n


Office 2007 ¥H¤Î XP Àô¹Ò¤¤¬O§¹¥þ¥i¥H¶¶ºZ°õ¦æªº¡A
§_«h§A¤]¤£·| PO ¤å¥s¤j®a¤U¸üªY½à¡C

TOP

        ÀR«ä¦Û¦b : ¡i¬°µ½Ävª§¡j¤H¥Í­n¬°µ½Ävª§¡A¤À¬í¥²ª§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD