Date Formula

  • Thread starter Thread starter AP-Topper
  • Start date Start date
A

AP-Topper

Is it possible to show an automatic date on a sheet which indicates when it
was last modified? and of course updates from then on...
 
Hi AP-Topper

With code you can do this

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
Cancel As Boolean)
'If you save the file the date/time will be placed in cell A1 of Sheet1
Sheets("Sheet1").Range("A1").Value = Format(Now, "yyyy-mmm-dd hh:mm:ss")
End Sub

Copy the code in the Thisworkbook module and it will run automatic when you save the file
See
http://www.rondebruin.nl/code.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top