LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.newusers
CLR
 
Posts: n/a
Default Hot key for time?

Hi dc...........
Here's a macro that will date/time stamp the current cell selected.....note
the date will be necessary to be able to calculate expanses of time across
midnight, so might as well use it all the time. The macro can of course be
modified to switch the activecell as you require.

Sub TimeStamp()
' Select a cell and run the macro to insert
' the current date and time
ActiveCell.FormulaR1C1 = Date & " " & Time
End Sub

hth
Vaya con Dios,
Chuck, CABGx3


"Dave in Des Moines" wrote:

I have an employee who needs to complete a time ananlysis where he records
how much time he spends on various tasks each day. I thought the simplest way
to do it would be to create "hot key" in Excel, so he could point to a cell,
hit a key (say, F8, or shift-F8) to put the current time in the cell.

Let's say the worksheet has three columns: Start time, End time, and Task.
When he gets to work, he manually enters the start time in the top cell of
the Start Time column, then relocates the focus to the adjacent End Time
cell. When he changes tasks, he hits the hot key, and it records the current
time in both that cell and the next row's Start Time cell. Then he enters the
task in the third column.

Then, I can create a simple formula to calculate the length of each task.

Any idea how I could do this?

Thanks!

dc

 
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



All times are GMT +1. The time now is 10:18 PM.

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"