Creating user/date/time log

blaksnm

Well-known Member
Joined
Dec 15, 2009
Messages
554
Office Version
  1. 365
Platform
  1. Windows
Hey guys
My workbook "MASTER.xlsm" is activated and used by several users.
I want to create a complete cronologic log (hidden in sheet("LIST")of all accesses, by calling attributs (if they exist) as username or initials(ColumnA) /date (B)/time (C)
The log will not save the new access-data if the file is not saved.
I think the command has to be a sequence of the auto_open macro, but how will the command look like?
Can anyone guide me on this one?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Create a Log sheet
Enter Titles like the following in Cell A1
User, Date, Time

Enter code in the workbook on Open Event

Sheets("Log").select
Range("A1").select
Do Until Activecell.value=""
Activecell.offset(1,0).select
Loop
Activecell.Value=Environ("UserName")
Activecell.offset(0,1).value=Date
Activecell.offset(0,2).value=Time
 
Upvote 0
Thanks a lot both of you
This really made the trick :)!
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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