Excel - Auto Save username & date/time to list

srwalesh

New Member
Joined
May 4, 2016
Messages
7
i am looking for some advice, and my assumption is that this is likely to need VBA... I currently run a shared file with VBA that will send me an email stating that changes have been made to said file. This is only useful, however, if the end user is has Microsoft Outlook running on their device. I would much prefer, if possible, to use a hidden tab that will add a date and time stamp to a column each time the file is saved by a user. Listing the username of the individual would also be a necessity. Is there a formula/set of formulas that could enter this information? i have an example of what i am thinking would be a good output, but i am open to suggestions.


Usernamedate/time
bob hope01-15-2016 at 5:55 PM
bob dylan01-16-2016 at 3:27 AM
bob uecker01-20-2016 at 12:20 PM
bob ross01-25-2016 at 8:00 AM

<tbody>
</tbody>


any help is much appreciated, thanks everyone!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Assuming Sheet2 is the hidden sheet, right-click any sheet, select View Code, double-click "ThisWorkbook", enter this:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
With Sheets("Sheet2").Range("A1000000").End(xlUp).Offset(1)
.Value = Application.UserName
.Offset(, 1).Value = Now
End With
End Sub
 
Upvote 0
i have run into an issue with this formula, but i do not know why. i have 5-6 people saving to a file at different times during the day, however, there is one person who when they save the file a time stamp is not created. any ideas?
 
Upvote 0

Forum statistics

Threads
1,215,912
Messages
6,127,685
Members
449,398
Latest member
m_a_advisoryforall

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