Document Properties and Custom Fields

  • Thread starter Thread starter Andrew
  • Start date Start date
A

Andrew

Hi ,
Is it possible to insert a reference to document
properties or custom fields (defined under custom
properties) into a excel footer?

Thanks
Andrew
 
You could use a macro to retrieve it:

Option Explicit
Sub testme01()

With ActiveSheet.PageSetup
.CenterFooter = "&8 " & _
FormatDateTime((ActiveWorkbook _
.BuiltinDocumentProperties("Last Save Time")), 1)

.RightFooter = "&8 " & _
ActiveWorkbook.CustomDocumentProperties("mycustomprop")

End With

End Sub

Be aware that not all builtinproperties are kept in excel and there are some
differences between versions of excel. ("last save time" was first kept in
xl2k, if I recall correctly.)
 

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

Back
Top