Discussion Locked

Insert save date in Excel worksheet foot

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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...

4 replies

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

This discussion is closed to new replies.