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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Hi,

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

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

Mike
 
Back
Top