Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ted Ted is offline
external usenet poster
 
Posts: 48
Default running clock in a cell

I have created a employee time sheet and let employee punch in/out by
pressing Ctrl+Shift+;. This works fine but occasionally they punch in wrong
time by manually typing in/out. Now I am using =NOW(), this work better then
Ctrl+Shift+;, only down side is employees have to press F9 to get a current
time. Is there any function that will re-calculate automatically. I am very
new to excel (2007). any comment and suggestion or answer will be greatly
appreciated. Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default running clock in a cell

You can place a refresh button on the page and assign the following code to it;
Sub ForcedCalculation()
'Assumption - Cell A1 contains the time
Range("A1").Calculate
End Sub

or you can use the following code after adjusting for the range. This code
will refresh everytime anything changes in a cell in the range selected

Private Sub Worksheet_Change(ByVal Target As Range)
Dim MyRange As Range, MyCell As Range
Set MyCell = Target(1, 1)
Set MyRange = [A1:A10] 'define the range here
'
If Intersect(MyCell, MyRange) Is Nothing Then
'you know the cell is not in the range, so exit
Exit Sub
Else
'continue with your cell
With MyCell
'code here
End With
End If
End Sub
"Ted" wrote:

I have created a employee time sheet and let employee punch in/out by
pressing Ctrl+Shift+;. This works fine but occasionally they punch in wrong
time by manually typing in/out. Now I am using =NOW(), this work better then
Ctrl+Shift+;, only down side is employees have to press F9 to get a current
time. Is there any function that will re-calculate automatically. I am very
new to excel (2007). any comment and suggestion or answer will be greatly
appreciated. Thank you in advance.

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
running clock Ted Excel Worksheet Functions 5 August 8th 11 08:34 PM
Running Clock Ralph[_2_] Excel Discussion (Misc queries) 1 March 13th 08 11:41 PM
How do I calculate time in excel (clock in and clock out chad Excel Discussion (Misc queries) 3 January 7th 08 10:09 PM
A running clock Cara Excel Worksheet Functions 1 August 13th 07 05:25 PM
Change EXCEL Clock to Standard Clock or Military Time YoMarie Excel Worksheet Functions 4 April 29th 07 08:39 PM


All times are GMT +1. The time now is 11:13 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"