#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default Timer Update

Hi

Is there any way I can have a counter in a cell, ie start at 0 and add 1
every second.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default Timer Update

Chronomèt http://boisgontierjacques.free.fr/fi...ronoSimple.xls

Public ProchainChrono, Départ
Sub Demarre()
Départ = Timer()
majChrono
End Sub

Sub majChrono()
Sheets("Chrono").[A1] = Format((Timer() - Départ) / 3600 / 24,
"hh:mm:ss")
ProchainChrono = Now + TimeValue("00:00:1")
Application.OnTime ProchainChrono, "majChrono"
End Sub

Sub Arret()
On Error Resume Next
Application.OnTime ProchainChrono, Procedu="majChrono",
Schedule:=False
End Sub

JB


On 12 août, 19:08, Alectrical
wrote:
Hi

Is there any way I can have a counter in a cell, ie start at 0 and add 1
every second.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default Timer Update

Thanks Jacques, it works a treat


"JB" wrote:

Chronomht http://boisgontierjacques.free.fr/fi...ronoSimple.xls

Public ProchainChrono, Dipart
Sub Demarre()
Dipart = Timer()
majChrono
End Sub

Sub majChrono()
Sheets("Chrono").[A1] = Format((Timer() - Dipart) / 3600 / 24,
"hh:mm:ss")
ProchainChrono = Now + TimeValue("00:00:1")
Application.OnTime ProchainChrono, "majChrono"
End Sub

Sub Arret()
On Error Resume Next
Application.OnTime ProchainChrono, Procedu="majChrono",
Schedule:=False
End Sub

JB


On 12 ao{t, 19:08, Alectrical
wrote:
Hi

Is there any way I can have a counter in a cell, ie start at 0 and add 1
every second.

Thanks




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timer Brandon H Excel Discussion (Misc queries) 5 August 9th 07 01:54 PM
Timer Vijay Excel Worksheet Functions 1 April 6th 07 11:00 AM
Lap-timer kabildgaard Excel Discussion (Misc queries) 0 August 11th 06 03:26 PM
Stopping a Timer / Running a timer simultaneously on Excel Paul23 Excel Discussion (Misc queries) 1 March 10th 06 12:08 PM
Is a countdown timer possible? aharmer Excel Discussion (Misc queries) 1 February 8th 05 01:47 AM


All times are GMT +1. The time now is 11:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"