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.

Plot stamp or footer with "Create Date"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raymond - 09 Jun 2007 01:39 GMT
Hello,

I need my excel print jobs to have a footer that reports the file's "Create
Date" . Can anyone tell me how've they done this successfully?

Thanks!

Raymond
Gord Dibben - 09 Jun 2007 02:26 GMT
Raymond

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

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

'=DOCPROPS("author")
'or
'=DOCPROPS("last save time")
'or
'DOCPROPS("creation date")

Then run this macro.  Strip out what you don't want in the footer before
running.

Sub PathInFooter()
   ActiveSheet.PageSetup.RightFooter = ActiveWorkbook.FullName & " " & _
           ActiveSheet.Name & " " & Application.UserName & " " & Date _
           & DocProps("creation date")
End Sub

Gord Dibben  MS Excel MVP

>Hello,
>
[quoted text clipped - 4 lines]
>
>Raymond
 
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.