Can I Add the last saved Date to cell ref in excel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi anyone

How can I add the last saved date to a cell ref in excel?

Thank you in advance
 
Hi,

Alt+F11 to open Vb editor.
Double click 'This Workbook' and paste this in

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Worksheets("Sheet1").Range("A1").Value = Now
End Sub

Mike
 
Thanks for replying Mike. Should I also add =lastsave() to A1 cell of Sheet1?
 
Hi,

You can add whatever text you want, the correct syntax is

Worksheets("Sheet1").Range("A1").Value = "Last saved date " & Now

Mike
 

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