Save Date

  • Thread starter Thread starter Marty
  • Start date Start date
M

Marty

How can I update the value in a cell that represents the last date the
workbook was saved?
 
How can I update the value in a cell that represents the last date the
workbook was saved?

Try saving this in the code section of the ThisWorkbook object ...

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
Cancel As Boolean)
ActiveWorkbook.Worksheets(1).Range("A2").Value = Now()
End Sub


Adjust the location to suit.

HTH,

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
 

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