Automatic time/date stamp for last time worksheet was changed

excelmyexcel

New Member
Joined
Sep 4, 2007
Messages
12
Hi,

I am trying to have Excel automatically put a time/date stamp in a cell anytime a worksheet (not a workbook) has been changed.

I have seen the code for an automatic time/date stamp right before a workbook is saved, but I am looking for something that will do this anytime a worksheet is changed.

Any tips are appreciated.

Thanks!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Right click the Excel logo just to the left of File on the menu bar, select View Code and paste in

Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Application.EnableEvents = False
Sh.Range("A1").Value = Now
Application.EnableEvents = True
End Sub
Everytime there is a change on any sheet a timestamp will appear in A1 of that sheet.
 
Upvote 0
Hi VoG,

I have a 9-worksheet workbook. I want each of 8 cells (b11-b18) to return the last update date & time for each of the other 8 worksheets. Is this possible?

Thanks in advance for the help
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

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