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

VBA timer

VBA timer

¤À¨É

Timer-Counter.rar (13.12 KB)
sonny1.gif
  1. Sub Start_Timer()
  2.     Application.OnTime Now + TimeValue("00:00:01"), "Increment_count"
  3. End Sub

  4. Sub Increment_count()
  5.     Range("A3").Value = Range("A3").Value + 1
  6.     Start_Timer
  7. End Sub

  8. Sub Stop_Timer()
  9.     Application.OnTime Now + TimeValue("00:00:01"), "Increment_count", schedule:=False
  10. End Sub
½Æ»s¥N½X
ss

        ÀR«ä¦Û¦b : ¡i®É¶¡µLªk¾B¾×¡j©È®É¶¡®ø³u¡Aªá¤F³\¦h¤ß¦å¡A·QºÉ¦U¦¡¤èªk­n¾B¾×®É¶¡¡Aµ²ªG¬O¡G®ö¶O¤F§ó¦h®É¶¡¡A¥B¤@µL©Ò¦¨¡I
ªð¦^¦Cªí ¤W¤@¥DÃD