+ Reply to Thread
Results 1 to 9 of 9

Capture the date and time any cell in the workbook has been updated

  1. #1
    Registered User
    Join Date
    08-08-2008
    Location
    ny
    Posts
    70

    Capture the date and time any cell in the workbook has been updated

    Hello all,

    I am trying to create a cell on a worksheet that lists the date/time that any cell in the workbook has been updated.

    Example, the summary tab would have a cell that says "Date Last Updated". The cell next to it would have the date some last updated a cell in the workbook.

    Does anyone know if this is possible?

    Stephen

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Capture the date and time any cell in the workbook has been updated

    You could use the Workbook level Worksheet_Change event if you wanted to/

    Let's first name the cell in which the stamp will reside, let's call it: _lastupdate

    Please Login or Register  to view this content.
    The above should be placed within ThisWorkbook object.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Capture the date and time any cell in the workbook has been updated

    You can't test the intersection of ranges on different sheets without raising an error.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Capture the date and time any cell in the workbook has been updated

    Thanks shg, I didn't test - my bad.

    Is there an elegant way to test if Target is the Named Range ?

    I could only think along lines of:

    Please Login or Register  to view this content.
    Which is cumbersome... must be a better way to get full address of Target ?


    EDIT: Though I guess in this instance a simple On Error Resume Next prior to the test of Intersect would suffice given it must be ok to proceed...
    Last edited by DonkeyOte; 04-09-2009 at 12:44 PM.

  5. #5
    Registered User
    Join Date
    08-08-2008
    Location
    ny
    Posts
    70

    Re: Capture the date and time any cell in the workbook has been updated

    That did work well on the one sheet but I did get the error when entering a value on another tab like shg said.

    Is there something that works for the whole workbook?

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Capture the date and time any cell in the workbook has been updated

    EDIT: revised... having a bad day... grr...

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-08-2008
    Location
    ny
    Posts
    70

    Re: Capture the date and time any cell in the workbook has been updated

    Simply perfect. Thank you sooo much.

    Stephen

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Capture the date and time any cell in the workbook has been updated

    Do you need to test at all, DO? Why not just set the time in the range -- the only wrinkle is if the user overwrites the range, and then it just gets overwritten again.

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Capture the date and time any cell in the workbook has been updated

    I agree with you shg, I was just trying to be as "clean" as possible, ie separate out that cell such that it could be set manually if ever the need arose... I guess in reality it would be safer for that to not to be possible ... it would otherwise defeat the purpose of the entire exercise !

    BB, general consensus is to remove the test altogether...

+ 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