EXCEL FOOTER: Last Modified Date

S

Steven Cooper

Within Excel 2000 and Excel XP, is there a way to insert into a custom
footer and auto update the files last modified date?

Thank you,
-sdc-
 
B

Bob Phillips

Steven,

Private Sub Workbook_BeforePrint(Cacel As Boolean)
With ActiveWorkbook
.ActiveSheet.PageSetup.LeftHeader = "Last saved on: " & _
Format(.BuiltinDocumentProperties("Last Save Time"), "dd mmm
yyyy")
End With
End Sub

goes in the ThisWorkbook code module.

Watch the wrap-around on the Format line


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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