Welcome to Lockergnome.com!
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Printing Last Date Modified...

 
   Home -> Office -> Printing RSS
Next:  Printing: Paper Size option in Excel Unavailable  
Author Message
Michel Moreno

External


Since: Nov 02, 2006
Posts: 4



(Msg. 1) Posted: Tue Jul 10, 2007 11:54 am
Post subject: Printing Last Date Modified...
Archived from groups: microsoft>public>excel>printing (more info?)

Hi, I'm trying to print in the footer of an spreadsheet the last date it was
modified, is there any way to do this???
I was reading a post make by Gord Dibben but i couldn't get it to work.It
works fine for the creation date but not for last date modified. (read
below)

I will really appreciate any help.
Thanks in advanced,

-Michel



*******************************************************************************
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
*******************************************************************************
Back to top
Login to vote
Gord Dibben

External


Since: Feb 23, 2004
Posts: 8800



(Msg. 2) Posted: Tue Jul 10, 2007 4:07 pm
Post subject: Re: Printing Last Date Modified... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Which part doesn't work?

The Docprops function or the footer macro?

NOTE: If you haven't saved the workbook at least once before you will have no
last save time available.

Did you try in a worksheet cell =DocProps("last save time")

What got returned?


Gord Dibben MS Excel MVP

On Tue, 10 Jul 2007 11:54:31 -0400, "Michel Moreno" <NoSp DeleteThis @m.com> wrote:

>Hi, I'm trying to print in the footer of an spreadsheet the last date it was
>modified, is there any way to do this???
>I was reading a post make by Gord Dibben but i couldn't get it to work.It
>works fine for the creation date but not for last date modified. (read
>below)
>
>I will really appreciate any help.
>Thanks in advanced,
>
>-Michel
>
>
>
>*******************************************************************************
>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
>*******************************************************************************
>
Back to top
Login to vote
Michel Moreno

External


Since: Nov 02, 2006
Posts: 4



(Msg. 3) Posted: Thu Jul 12, 2007 8:54 am
Post subject: Re: Printing Last Date Modified... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Gord,

My mistake, it is working fine, thanks.

Michel

"Gord Dibben" <gorddibbATshawDOTca> wrote in message
news:kv3893t1hnepoovn2qhnccj31l2e1hri70@4ax.com...
> Which part doesn't work?
>
> The Docprops function or the footer macro?
>
> NOTE: If you haven't saved the workbook at least once before you will
> have no
> last save time available.
>
> Did you try in a worksheet cell =DocProps("last save time")
>
> What got returned?
>
>
> Gord Dibben MS Excel MVP
>
> On Tue, 10 Jul 2007 11:54:31 -0400, "Michel Moreno" <NoSp.RemoveThis@m.com> wrote:
>
>>Hi, I'm trying to print in the footer of an spreadsheet the last date it
>>was
>>modified, is there any way to do this???
>>I was reading a post make by Gord Dibben but i couldn't get it to work.It
>>works fine for the creation date but not for last date modified. (read
>>below)
>>
>>I will really appreciate any help.
>>Thanks in advanced,
>>
>>-Michel
>>
>>
>>
>>*******************************************************************************
>>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
>>*******************************************************************************
>>
>
Back to top
Login to vote
Gord Dibben

External


Since: Feb 23, 2004
Posts: 8800



(Msg. 4) Posted: Thu Jul 12, 2007 8:54 am
Post subject: Re: Printing Last Date Modified... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the update.


Gord

On Thu, 12 Jul 2007 08:54:47 -0400, "Michel Moreno" <NoSp.DeleteThis@m.com> wrote:

>Hi Gord,
>
>My mistake, it is working fine, thanks.
>
>Michel
>
>"Gord Dibben" <gorddibbATshawDOTca> wrote in message
>news:kv3893t1hnepoovn2qhnccj31l2e1hri70@4ax.com...
>> Which part doesn't work?
>>
>> The Docprops function or the footer macro?
>>
>> NOTE: If you haven't saved the workbook at least once before you will
>> have no
>> last save time available.
>>
>> Did you try in a worksheet cell =DocProps("last save time")
>>
>> What got returned?
>>
>>
>> Gord Dibben MS Excel MVP
>>
>> On Tue, 10 Jul 2007 11:54:31 -0400, "Michel Moreno" <NoSp.DeleteThis@m.com> wrote:
>>
>>>Hi, I'm trying to print in the footer of an spreadsheet the last date it
>>>was
>>>modified, is there any way to do this???
>>>I was reading a post make by Gord Dibben but i couldn't get it to work.It
>>>works fine for the creation date but not for last date modified. (read
>>>below)
>>>
>>>I will really appreciate any help.
>>>Thanks in advanced,
>>>
>>>-Michel
>>>
>>>
>>>
>>>*******************************************************************************
>>>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
>>>*******************************************************************************
>>>
>>
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> 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

Categories:
 General
 Microsoft Windows XP
 Microsoft Windows Vista
 Microsoft Windows (other)
  Microsoft Office
 Microsoft Office (other)
 Computer Security
 Linux
 Movies


[ Contact us | Terms of Service/Privacy Policy ]