Last Date Saved

  • Thread starter Thread starter Techy DuWright
  • Start date Start date
T

Techy DuWright

Excel 2003 and XP Pro SP3. Is there a way to add a place in the footer so
that the page displays the last date the file was saved?
 
Sub Last_Saved_Footer()
'Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim wkSht As Worksheet
For Each wkSht In ThisWorkbook.Worksheets
wkSht.PageSetup.RightFooter = "&8Last Saved : " & _
Format(ThisWorkbook.BuiltinDocumentProperties("Last Save Time"), _
"yyyy-mmm-dd hh:mm:ss")
Next wkSht
End Sub


Gord Dibben MS Excel MVP
 
Back
Top