Creating a macro to print the date a document was last saved.

J

Judi

Good morning!

I am looking to add a macro to a workbook that will automatically print the
date last saved (in the bottom right corner, I think).

Can you help?

THANK YOU!

~judi
 
S

Shane Devenshire

Hi,

Try adding

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftHeader =
ActiveWorkbook.BuiltinDocumentProperties.Item("Last Save Time")
End Sub

If this helps, please click the Yes button,

Cheers,
Shane Devenshire
 

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