How do I add the last modified date to the footer in Excel?

J

JagodaW

In Word, you can enter: Document last changed: { SAVEDATE \@ "d MMMM yyyy
'at' HHmm 'hours' " } to display the last saved date in the footer. Can you
do this in Excel?
 
J

Jacob Skaria

You need to use a macro to do this. If you are new to macros set the Security
level to low/medium in (Tools|Macro|Security). From workbook launch VBE using
short-key Alt+F11. On the left treeview double click 'This Workbook' and
paste the code to the code panel.

Return back to workbook and try print preview.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.RightFooter = _
ThisWorkbook.BuiltinDocumentProperties("Last Save Time")
End Sub

If this post helps click Yes
 

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

Top