+ Reply to Thread
Results 1 to 2 of 2

How do I print sheet , with actual file save date in footer?

  1. #1
    irfy
    Guest

    How do I print sheet , with actual file save date in footer?



  2. #2
    Gord Dibben
    Guest

    Re: How do I print sheet , with actual file save date in footer?

    Add this UDF and macro to 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

    =DocProps("last author")
    or
    =DocProps("last save time")
    or
    -DocProps("creation date")

    Sub PathInFooter()
    ActiveSheet.PageSetup.RightFooter = DocProps("last save time")
    End Sub

    NOTE: the code could be included in a Before_Print routine.

    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    ActiveSheet.PageSetup.RightFooter = DocProps("last save time")
    End Sub


    Gord Dibben MS Excel MVP

    On Fri, 30 Jun 2006 08:28:01 -0700, irfy <[email protected]> wrote:



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1