How do I insert the date modified in a spreadsheet footer?

C

cnadwodny

I'm trying to create an Excel report footer that contains the date that the
file was last modified. Does anyone have any suggestions?
 
G

galimi

Using a small amount of code that includes references to the File System
Object, you can have this done automatically for your spreadsheets.
 
B

Bob Phillips

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter = _
ActiveWorkbook.BuiltinDocumentProperties("last save time")
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob Phillips

(replace somewhere in email address with googlemail if mailing direct)
 
C

cnadwodny

Yes, thanks.
However, I was hoping that I could gain access to the solution without
paying for it.
 
C

cnadwodny

Thanks, Bob. This should work just fine.

One additional question, if I may. Assuming this coding will work for other
BuiltIn Document Properties, (i.e., date file was created), do you know how
to obtain a list of these properties?

Thanks again for your help.
 
B

Bob Phillips

Have a look at BuiltinDocumentProperties in VBA help

--
HTH

Bob Phillips

(replace somewhere in email address with googlemail if mailing direct)
 
C

cnadwodny

Great. Found it. Thanks for your help.

Bob Phillips said:
Have a look at BuiltinDocumentProperties in VBA help

--
HTH

Bob Phillips

(replace somewhere in email address with googlemail if mailing direct)
 
Top