Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    May 2003
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    629
    Thanks
    0
    Thanked 0 Times in 0 Posts

    formula to find file mod. date of exel file (2003)

    I have a request to find a way to get the file's modification date.

    Can't seem to find anything that's getting me there. Can someone give me a pointer?

    Thanks
    Jim

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: formula to find file mod. date of exel file (2003)

    You would need to create a custom function for this:

    Public Function GetSaveDate()
    On Error Resume Next
    GetSaveDate = ActiveWorkbook.BuiltinDocumentProperties("Last Save Time")
    End Sub

    You can then put this formula in a cell:

    =GetSaveDate()

    The On Error Resume Next avoids errors if the workbook has not been saved yet, or if the active document is not an Excel workbook.

  3. #3
    5 Star Lounger
    Join Date
    May 2003
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    629
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: formula to find file mod. date of exel file (2003)

    Thanks!

Posting Permissions

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