Including the modified date in the footer

G

Guest

I'm thinking that in order to include the modified date in the footer, it
might have to be done programmatically. If so, how would I do it.

Thanks,
Barb Reinhardt
 
A

Ardus Petus

Paste the following into Worksheets''s code:

'---------------------------------
Private Sub Workbook_Open()
ActiveSheet.PageSetup.CenterFooter = _
ThisWorkbook.BuiltinDocumentProperties("last save time").Value
End Sub
'---------------------------------

HTH
 
G

Guest

I'd like for it to show Last Modified and the date. I have this so far:

Private Sub Workbook_Open()
ActiveSheet.PageSetup.RightFooter = _
Format(ThisWorkbook.BuiltinDocumentProperties("last save
time").Value, "dd-mmm-yyyy")
End Sub

I assume I could use the same as Worksheet Save.
 
A

Ardus Petus

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.CenterFooter = _
"Last date saved: " & _
Format( _
ThisWorkbook.BuiltinDocumentProperties("last save time").Value,
_
"dd-mm-yyyy")
End Sub
 
A

Ardus Petus

---------------------------------
Private Sub Workbook_Open()
ActiveSheet.PageSetup.CenterFooter = _
"Last saved: " &
format(ThisWorkbook.BuiltinDocumentProperties("last save
time").Value
End Sub
'---------------------------------
 
A

Ardus Petus

Last msg was wrongly posted!

Sorry,
--
AP

Ardus Petus said:
---------------------------------
Private Sub Workbook_Open()
ActiveSheet.PageSetup.CenterFooter = _
"Last saved: " &
format(ThisWorkbook.BuiltinDocumentProperties("last save
time").Value
End Sub
'---------------------------------
 

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