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

[µo°Ý] Excel 2007 ¦Û°Ê¥t¦s·sÀÉ

¥H¤U¬O´ú¸Õ¥X¨Óªº¤è¦¡¡A³o¤èªk¤£ª¾¹Dí¤£Ã­©w¡A¤]§Æ±æ¦³«e½ú¥i¥H«ü¾É¡A·s¤â¾Ç²ß¤¤...

¦b¤u§@ªí1 or ThisWorkbook¤U¡G
Private Sub CommandButton1_Click()
startTimer
End Sub

Private Sub CommandButton2_Click()
stopTimer
End Sub

¦b¼Ò²Õ·í¤¤¡G
Sub startTimer()
Application.OnTime Now + TimeValue("00:00:01"), "Increment_count"
End Sub

Sub Increment_count()
hiji = Now()
Range("A1") = hiji

WaitSec = 30 '©µ¿ð®É¶¡

NameOfThisProcedure = "Àx¦sµ{§Ç"

NextTime = hiji + TimeSerial(0, 0, WaitSec)

Application.OnTime EarliestTime:=NextTime, Procedure:=NameOfThisProcedure, LatestTime:=NextTime

startTimer
End Sub

Sub Àx¦sµ{§Ç()
  ThisWorkbook.SaveAs ThisWorkbook.Path & "\" & Format(Now, "yyyymmdd") & ".xls"
End Sub
¦Û°ÊÀx¦s¸Ë¸m.rar (21.8 KB)
ªì·sªÌ~«ü±ÐÅo~

TOP

¦^´_ 3# macacajau

±z¦n¡A2F«e½úªºµ{¦¡½X¶È½Æ»s¤W¥h°õ¦æ´N¦³®ÄªG¡C
ªì·sªÌ~«ü±ÐÅo~

TOP

¥»©«³Ì«á¥Ñ wl02353427 ©ó 2013-12-6 11:53 ½s¿è

¦^´_ 6# macacajau
À³¸Ó¥i¥Hª½±µ½Æ»s¥H¤U¨Ï¥Î¡A¨º­Ó®É¶¡¥u¬O½T»{¥L¦³¨S¦³¦b°Ê¦Ó¤w...
Sub Increment_count()
hiji = Now()
Range("A1") = hiji

WaitSec = 30 '©µ¿ð®É¶¡

NameOfThisProcedure = "Àx¦sµ{§Ç"

NextTime = hiji + TimeSerial(0, 0, WaitSec)

Application.OnTime EarliestTime:=NextTime, Procedure:=NameOfThisProcedure, LatestTime:=NextTime

startTimer
End Sub

Sub Àx¦sµ{§Ç()
  ThisWorkbook.SaveAs ThisWorkbook.Path & "\" & Format(Now, "yyyymmdd") & ".xls"
End Sub

   
ªì·sªÌ~«ü±ÐÅo~

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡¦pÆp¥Û¡j®É¶¡¹ï¤@­Ó¦³´¼¼zªº¤H¦Ó¨¥¡A´N¦pÆp¥Û¯ë¬Ã¶Q¡F¦ý¹ï·M¤H¨Ó»¡¡A«o¹³¬O¤@§âªd¤g¡A¤@ÂI»ù­È¤]¨S¦³¡C
ªð¦^¦Cªí ¤W¤@¥DÃD