Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

Inserting Date/Time of Last Update

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lionel B. Dyck - 14 Apr 2007 03:27 GMT
Is there a way to insert a date and time in a cell(s) that will only be updated
if there is a change to the worksheet. I'm looking to have the date/time of the
last update so that it is easy to tell how current the worksheet is.

Thanks

Signature

Lionel B. Dyck  <><
AIM ID: lbdyck  Yahoo IM: lbdyck
Homepage http://www.lbdsoftware.com/
Blog: http://randommgmt.blogspot.com/

Nick Hodge - 14 Apr 2007 09:47 GMT
Lionel

You could put some code in a worksheet_Change() event like so (uses A1)

Private Sub Worksheet_Change(ByVal Target As Range)
Range("A1").Value = Now()
End Sub

To implement right click the sheet tab and select view code and paste in
window and save

Signature

HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.ukANDTHIS
web: www.nickhodge.co.uk
blog: www.nickhodge.co.uk/blog/

FREE UK OFFICE USER GROUP MEETING, MS READING, 27th APRIL 2007
www.officeusergroup.co.uk

> Is there a way to insert a date and time in a cell(s) that will only be
> updated if there is a change to the worksheet. I'm looking to have the
> date/time of the last update so that it is easy to tell how current the
> worksheet is.
>
> Thanks
davesexcel - 14 Apr 2007 12:34 GMT
You could place a code in th before save event,
this is in the workbook module

Code:
--------------------
   Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
 Range("A1") = _
 "=TEXT(TODAY(),""d-mmmm-yyyy"") & "" "" & TEXT(NOW(),""h:mm AM/PM"")"
 
 End Sub
 
--------------------

Signature

davesexcel

Lionel B. Dyck - 14 Apr 2007 19:48 GMT
Thank you for both suggestions - I'll give them a try.

Much appreciated

Signature

Lionel B. Dyck  <><
AIM ID: lbdyck  Yahoo IM: lbdyck
Homepage http://www.lbdsoftware.com/
Blog: http://randommgmt.blogspot.com/


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.