Want to record the amount of time I actually spend at my desk

AB1984

New Member
Joined
May 12, 2016
Messages
17
As I spend some of day away from my desk I'm trying to create a spreadsheet that I'm going to put in my startup folder that should record:
1. Time when I login to the computer
2. The times I lock and unlock my screen
3. the time I shutdown the computer

I have point 1 covered, but don't know how to have now() dropped into the cells on the above events, or even if this is possible.
Any ideas?
Cheers
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi,

The easiest way to record time is to press the key Ctrl+Shift+; this puts the current time in the cell.

Regards,

Ashok Pai
 
Upvote 0
I appreciate the response, however I was looking for an automated process so, in pseudocode:
On_open
Find first empty cell in column A
enter now() 'I've got this far

If event = screen lock (ctrl+alt+del, or Win+l) then
cell b in current (today's) row = Now()

If event = screen unlock
cell c in current(today's) row = Now()

These two would continue throughout the day logging each time I lock and unlock my computer.
If event = computershutdown
final empty cell in today's column = Now()
Workbook save and exit

Is this possible?
 
Upvote 0

Forum statistics

Threads
1,215,370
Messages
6,124,526
Members
449,169
Latest member
mm424

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top