Insert save date in Excel worksheet foot
How do I insert the save date into the footer of my Excel 2000 worksheet?
I see how to add the current date, but not the save date. Word has this handy feature...
Software
How do I insert the save date into the footer of my Excel 2000 worksheet?
I see how to add the current date, but not the save date. Word has this handy feature...
by dklippert
Go to the VBA Editor. In the Project Explorer, select "ThisWorkbook". Double click and copy in this piece of code:
Private Sub Workbook_BeforeSave _
(ByVal SaveAsUI As Boolean, Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter = " - Saved - " & Date
End Sub
Each time the workbook is saved today's date will be automatically added to the Left Footer.
Excel's ActiveWorkbook.BuiltinDocumentProperties is a bit flakey. It doesn't work as well as Word.
by dklippert
That code- again - is
"Private Sub Workbook_BeforeSave _
(ByVal SaveAsUI As Boolean, Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter = " - Saved - " & Date
End Sub"
Without the quotes
by shannon_mk
by shannon_mk
This discussion is closed to new replies.
Sort by Trending