ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   saving the last user who edited the file (https://www.excelbanter.com/excel-discussion-misc-queries/73409-saving-last-user-who-edited-file.html)

kman

saving the last user who edited the file
 

Hi,
I want to see on my excel sheet who is the last user who edited the
file
or last saved date. similar to the "LASTSAVEDBY" or "SAVEDATE" in
msword


--
kman
------------------------------------------------------------------------
kman's Profile: http://www.excelforum.com/member.php...fo&userid=3337
View this thread: http://www.excelforum.com/showthread...hreadid=515637


Bob Phillips

saving the last user who edited the file
 
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
ThisWorkbook.Worksheets("Sheet1").Range("A1") = Environ("Username")
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"kman" wrote in message
...

Hi,
I want to see on my excel sheet who is the last user who edited the
file
or last saved date. similar to the "LASTSAVEDBY" or "SAVEDATE" in
msword


--
kman
------------------------------------------------------------------------
kman's Profile:

http://www.excelforum.com/member.php...fo&userid=3337
View this thread: http://www.excelforum.com/showthread...hreadid=515637





All times are GMT +1. The time now is 04:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com