Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change to sheet made with date and time stamp 2

Status
Not open for further replies.

HOMMER

Technical User
Apr 12, 2001
112
US
I want to have a cell called revised. In that cell I want to record the date and time anyone makes a change to the workbook. Also if possible the user who made the change.
 
Have you tried "sharing" the workbook. In the tools menu you can share the workbook and have Excel track the changes that are made to it. This will relieve you of having to set up routines to do this manually.

I haven't used the feature but I believe it will allow you to track not just when a workbook has been changed but what and by whom. This should far exceed a date and name routine.

Hope this helps Mahalo,
cg
 
Here's the VB code to do what you need.
substitute any cell ref in the Range() statement, and you may want to add a line to save the workbook when closed or when changes are made.

If you need more instruction, feel free to ask.


Private Sub Worksheet_Change(ByVal Target As Range)
Range("a1") = "Last change made by: " + UCase(Environ("UserName")) + " on " + Date$
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top