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

½Ð¦U¦ì¥ý¶iÀ°¦£ §ï§ÚªºVBA

ÁÂÁÂGBKEE

¤]¬O©ñ¦b¼Ò²Õ¶Ü

TOP

¦^´_ 21# junsean
¹ïªº
©Î¬O¦bThisWorkbook ¼Ò²Õªº Private SubWorkbook_Open() ¤]¥i¥H
  1. Private Sub Workbook_Open()
  2.     yy
  3.     xx
  4. End Sub
½Æ»s¥N½X

TOP

·P®¦GBKEE
ÁÙ¦³oobird
ÁÂÁ§A­Ì

TOP

¤µ¤Ñ¸Õ¥Î  ¥i¥H¥Î¤F
¥i¬O¨C¦¸³£°O¿ý3µ§(¦P¼Ëªº¼Æ¾Ú)
¦n©_©Ç
¤£¬O¨C¦¸°O¿ý1µ§¶Ü

½Ð¦U¦ì¤j¤j  À°À°¤p§Ì  ÁÂÁÂ

TOP

¦^´_ 24# junsean
ªþÀɨӬݬÝ

TOP

ªþÀÉ

³Â·Ð±z¤F

¤µ¤Ñ¤j³¡¤À¬O
¤@¦¸°O¿ý3µ§­«½Æªº¼Æ¾Ú

DDE.rar (105.62 KB)

TOP

¦^´_ 26# junsean
¤@¦¸°O¿ý3µ§­«½Æªº¼Æ¾Ú ¤£·|§r! ·|¤£·|¬O§Aªº¼Æ¾Ú¨S¦³Åܰʪº¿ùı.
¤w¥[¤W®É¶¡Äæ,§A²{¦b¨ì23:45:00«e¥i´ú¸Õ¬Ý¬Ý.
   
  1. Sub yy()
  2.     With Sheet1
  3.         If Time <= TimeValue("08:44:50") Then
  4.            .Range("A3:G50000") = ""
  5.            Application.OnTime TimeSerial(8, 45, 0), "yy"
  6.         End If
  7.         If Time >= TimeValue("08:45:00") And Time <= TimeValue("23:45:00") Then
  8.             ar = Array(.[A2], .[B2], .[C2], .[D2], .[E2], .[F2], .[G2], Time)
  9.             .[A65536].End(xlUp).Offset(1, 0).Resize(, 8) = ar
  10.             Application.OnTime Time + TimeSerial(0, 0, 10), "yy"
  11.         End If
  12.     End With
  13. End Sub
  14. Sub xx()
  15.     With Sheet2
  16.         If Time <= TimeValue("08:59:50") Then
  17.             .Range("A3:J50000") = ""
  18.             Application.OnTime TimeSerial(9, 0, 0), "xx"
  19.         End If
  20.         If Time >= TimeValue("09:00:00") And Time <= TimeValue("23:32:10") Then
  21.             ar = Array(.[A2], .[B2], .[C2], .[D2], .[E2], .[F2], .[G2], .[H2], .[I2], .[J2], Time)
  22.             .[A65536].End(xlUp).Offset(1, 0).Resize(, 11) = ar
  23.             Application.OnTime Time + TimeSerial(0, 1, 0), "xx"
  24.         End If
  25.     End With
  26. End Sub
½Æ»s¥N½X

TOP

À³¸Ó¤£¬O¿ùı

½Ð¬Ý¤µ¤Ñ°O¿ýªº¹Ï

Noname.png (36.33 KB)

Noname.png

TOP

´ú¸Õok

¥i¬O½L¤¤¯uªº¤@¦¸°O¿ý3µ§
§Ú©ú¤Ñ¦A¸Õ¸Õ

ÁÂÁÂGBKEE

TOP

¤µ¤Ñ²×©ó¥i¥H¥Î¤F

¤Ó·PÁ±z¤FGBKEE

ÁÙ¦³oobird
¤]­nÁÂÁ±z

TOP

        ÀR«ä¦Û¦b : ­n¥Î¤ß¡A¤£­n¾Þ¤ß¡B·Ð¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD