Create Date in the footer


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Printing RSS
Next:  Does MS-Excel is having any special behavior from..  
Author Message
Raymond
External


Since: Jun 08, 2007
Posts: 4



PostPosted: Wed Jun 13, 2007 12:49 pm    Post subject: Create Date in the footer
Archived from groups: microsoft>public>excel>printing (more info?)

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
Back to top
Gord Dibben
External


Since: Feb 23, 2004
Posts: 8800



PostPosted: Wed Jun 13, 2007 2:09 pm    Post subject: Re: Create Date in the footer [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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


On Wed, 13 Jun 2007 12:49:48 -0800, "Raymond" <raymondinak.DeleteThis@gmail.com> wrote:

>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
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Printing All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum