+ Reply to Thread
Results 1 to 9 of 9

Last Updated Date & time in Cell

  1. #1
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Last Updated Date & time in Cell

    hi, i want to know whether there is any formula for displaying the last date & time of the file saved.
    THANKS
    ExcelKeechak

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Last Updated Date & time in Cell

    A UDF is required for this.
    Place this in a Normal VBA Module

    Please Login or Register  to view this content.
    Then in excel enter the formula

    =ModDate()

  3. #3
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Last Updated Date & time in Cell

    Ok.Thanks for the solution.
    Hmmm any other alternate for this using formula

  4. #4
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Last Updated Date & time in Cell

    hello davesexcel,i had a little problem with the solution.its not updating the time of last saved.When ever i Save the file>> Close it >>> Re-open it>>.its showing the first saved time only.I think it should show the new changes also dynamically.plz help

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Last Updated Date & time in Cell

    If there is a Built in worksheet function, I can't find it.

    The function has to be initiated each time the workbook is opened, possibly using this

    =moddate()+0*NOW()

    The Now() will ensure the worksheet calculates, updating the moddate.

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Last Updated Date & time in Cell

    Dave, if you combine it with NOW(), wouldn't that produce the same effect as using Application.Volatile in the function?

  7. #7
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Last Updated Date & time in Cell

    To tell the truth, I thought it was in there, but just not working
    Please Login or Register  to view this content.

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Last Updated Date & time in Cell

    Although these seem to work even this would work to get the time last modified.
    Please Login or Register  to view this content.
    This is macro driven so just run the macro to get the last date modified.

    Running the macro or using the UDF the workbook would be considered changed, and want to save, even if you did not make any real changes.

    Placing this code in the Workbook_BeforeSave may be a better idea

    Please Login or Register  to view this content.
    or another option is to decide if you want to record the time when you close the workbook

    Please Login or Register  to view this content.

  9. #9
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Last Updated Date & time in Cell

    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ 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