Try this slightly different approach...
Open the VB Editor (alt+F11)
Click View, Project explorer
Double click the ThisWorkbook icon in the project explorer (you may have to expand the tree)
Now assume you have a sheet named Expenses and you want to record the last saved date & time in cell C3 on this sheet. Use this code
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Sheets("Expenses").Range("C3").Value = Format(Now(), "dd/mm/yy hh:mm")
End Sub
Does that help?
Dax.
Forgot to add. The date and time will be added once you click Save.
ok that's what I forgot to do...save it !
Thank you Dax, You are so nice
Jill