Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Printing / June 2007

Tip: Looking for answers? Try searching our database.

Create Date in the footer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raymond - 13 Jun 2007 21:49 GMT
Hello...

I hope someone can tell me how to print the file create date in the footer
of my excel file...

Thanks in advance!

Raymond
Gord Dibben - 13 Jun 2007 22:09 GMT
Raymond

First you can copy this all-purpose UDF to a general module in your workbook.

Function DocProps(prop As String)
   Application.Volatile
   On Error GoTo err_value
   DocProps = ActiveWorkbook.BuiltinDocumentProperties _
   (prop)
   Exit Function
err_value:
   DocProps = CVErr(xlErrValue)
End Function

If entering in a cell usage is..................
'=DOCPROPS("author")
'or
'=DOCPROPS("last save time")
'or
'DOCPROPS("creation date")

To enter in a footer use this macro, also copied to the general module.

Sub PathInFooter()
   ActiveSheet.PageSetup.RightFooter =  DocProps("creation date")
End Sub

Gord Dibben  MS Excel MVP

>Hello...
>
[quoted text clipped - 4 lines]
>
>Raymond

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.