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 / July 2007

Tip: Looking for answers? Try searching our database.

Printing Last Date Modified...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michel Moreno - 10 Jul 2007 16:54 GMT
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
*******************************************************************************
Gord Dibben - 11 Jul 2007 00:07 GMT
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

>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???
[quoted text clipped - 38 lines]
>Gord Dibben  MS Excel MVP
>*******************************************************************************
Michel Moreno - 12 Jul 2007 13:54 GMT
Hi Gord,

My mistake, it is working fine, thanks.

Michel

> Which part doesn't work?
>
[quoted text clipped - 53 lines]
>>Gord Dibben  MS Excel MVP
>>*******************************************************************************
Gord Dibben - 12 Jul 2007 16:06 GMT
Thanks for the update.

Gord

>Hi Gord,
>
[quoted text clipped - 59 lines]
>>>Gord Dibben  MS Excel MVP
>>>*******************************************************************************

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.