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

¦P®É°õ¦æµ{¦¡?

¦P®É°õ¦æµ{¦¡?

¦bºô¸ô¤W§ä¨ì¤@­Ó¥i¥HÅã¥Ü¦b¤u§@­¶ªº­p®É¾¹, ·Q¸ò¦Û¤v¼gªºªF¦è¨Ã¦æ, «oµo²{·|¤@ª½¦b­p®Éªºµ{¦¡¶], ½Ð°Ý.....³oºØ¤è¦¡¥i¦æ¶Ü?
sub xx
...............
k = Timer / 86400 + 0.001 / 86400
Application.OnTime k, "yy"
................
end sub

­p®É¾¹
Public StopIt As Boolean
Public ResetIt As Boolean
Public LastTime
Sub yy()
Dim StartTime, FinishTime, TotalTime, PauseTime
StopIt = False
ResetIt = False
If Range("a18") = 0 Then
  StartTime = Timer
  PauseTime = 0
  LastTime = 0
Else
  StartTime = 0
  PauseTime = Timer
End If
            
StartIt:
  DoEvents
  If StopIt = True Then
    LastTime = TotalTime
    Exit Sub
  Else
    FinishTime = Timer
    TotalTime = FinishTime - StartTime + LastTime - PauseTime
    TTime = TotalTime * 100
    Hm = TTime Mod 100
    TTime = TTime \ 100
    hh = TTime \ 3600
    TTime = TTime Mod 3600
    MM = TTime \ 60
    SS = TTime Mod 60
    Range("a18").Value = Format(hh, "00") & ":" & Format(MM, "00") & ":" & Format(SS, "00") & "." & Format(Hm, "00")
    If ResetIt = True Then
      Range("a18") = Format(0, "00") & ":" & Format(0, "00") & ":" & Format(0, "00") & "." & Format(0, "00")
      LastTime = 0
      PauseTime = 0
      End
    End If
    GoTo StartIt
  End If
End Sub
ªì¾ÇªÌcolor

¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ color790 ©ó 2012-6-7 19:28 ½s¿è

Hi~ ª©¥D
¤@¶}©l¬ã¨s¤F´X¤Ñ, ³£¨S¯à¦¨¥\, ¯î¼o¤F¤@¬q®É¶¡, ¤µ¤Ñ¤S¦A¬Ý¤@¦¸, ©~µM¤£¤p¤ß¦¨¥\ ^^
¦ýµo²{¤@ÂI´N¬O....
ª©¥D¬O§Q¥Î¨C0.2¬í¥[1ªº¤è¦¡
§Ú§ï¦¨¨C0.1¬í+0.1 (§Æ±æ¯àÅܦ¨Timer), µ²ªG¹ê»Ú°õ¦æ·|ºC¬í, «á¨Ó´N¤gªk·Ò¿û, ±o¨ì¤@­Ó·Pı¤£·|ºC¬í©Î§Ö¬íªº­È,
½Ð°Ý
1. ³o­Ó­È¬O¨Ì·Ó¹q¸£³t«×ªº¤£¦P, ¦Ó§ïÅÜÁÙ¬O ????
2. ¦³¤èªk¥i¥H¸Ñ¨M¶Ü(¤gªk·Ò¿û¤£¦n=.=")?? §Ú¬O§Q¥Îtimer-°_©l­È ¦ý³£¤£·|°Ê!! (¤w¸Ñ¨M)
' s ¦b¥t¤@­Óµ{§Ç, ¬°°_©l­È s=timer
Sub Asub()
With Worksheets("AutoTimer").Range("a1")
.Value = (Timer - s) / 86400
End With
End Sub
ªì¾ÇªÌcolor

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¯Ê¤fªºªM¤l¡A¦pªG´«¤@­Ó¨¤«×¬Ý¥¦¡A¥¦¤´µM¬O¶êªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD