Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Chronometer in cell

How can I add a chronometer in a cell? I have i.e. two cells :
C4 D4
C4 is Beginning Hour and
D4 is Ending hour.
What I need is to have the possibity in having at least five cells wit
different chronometers at the same time and end each one at differen
times . Also needed, when I end a chronometer the time must be inserte
in the cell of ending hour.
Perhaps a VB can do this.

Thanks a lo

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Chronometer in cell

If you are triggering the Start/Stop times manually insert a couple of Command Buttons into your spreadsheet and use the click event procedures to paste the system time into the cells.
Ex

Private Sub cmdStart_Click() 'This would paste the same start time into all 5 start cell
Range("C4:C8").Value = No
End Su

Private Sub cmdStop_Click() 'This would paste the stop time into a single cel
Range("D4").Value = Now ' You would have to have an individual button for each stop cel
End Su

Private Sub cmdStop_Click() 'This would use a single button to cycle through all 5 stop cell
If cmdStop.Caption = "Stop " & 1 Then 'Be sure to put the caption "Stop 1" on this buttons propertie
Range("B3").Value = No
cmdStop.Caption = "Stop " &
ElseIf cmdStop.Caption = "Stop " & 2 The
Range("B4").Value = No
cmdStop.Caption = "Stop " &
ElseIf cmdStop.Caption = "Stop " & 3 The
Range("B5").Value = No
cmdStop.Caption = "Stop " &
ElseIf cmdStop.Caption = "Stop " & 4 The
Range("B6").Value = No
cmdStop.Caption = "Stop " &
ElseIf cmdStop.Caption = "Stop " & 5 The
Range("B7").Value = No
cmdStop.Caption = "Stop " &
End I
End Su

To see the elapsed time, add a formula in another cell. ex.(=D4-C4
Be sure to format your cells for time

hope this helps
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
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Excel Discussion (Misc queries) 0 June 29th 09 11:20 AM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Yuvraj Excel Discussion (Misc queries) 0 June 26th 09 06:01 PM
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 [email protected] Excel Worksheet Functions 1 August 22nd 08 02:04 AM
How to create/run "cell A equals Cell B put Cell C info in Cell D abmb161 Excel Discussion (Misc queries) 5 January 26th 06 06:36 PM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Excel Programming 1 July 8th 03 03:03 PM


All times are GMT +1. The time now is 02:38 AM.

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

About Us

"It's about Microsoft Excel"