ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I add the last modified date to the footer in Excel? (https://www.excelbanter.com/excel-discussion-misc-queries/237565-how-do-i-add-last-modified-date-footer-excel.html)

JagodaW

How do I add the last modified date to the footer in Excel?
 
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?

Jacob Skaria

How do I add the last modified date to the footer in Excel?
 
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
---------------
Jacob Skaria


"JagodaW" wrote:

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?



All times are GMT +1. The time now is 03:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com