+ Reply to Thread
Results 1 to 11 of 11

show the date and time when there is an change in the worksheet

  1. #1
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    show the date and time when there is an change in the worksheet

    Hi

    I have the =now() function in a cell. I would need to change this formula to show the date and time when there is an change in the worksheet.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: show the date and time when there is an change in the worksheet

    This will require VBA and some sort of worksheet change event, I believe, so I've moved your thread to the VBA section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: show the date and time when there is an change in the worksheet

    Right Click on your sheet name at the bottom of excel and select view code.

    A module will open

    Paste this code into the module and close it

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: show the date and time when there is an change in the worksheet

    Hi
    Thank you for your response. I tried the vba and it worked to a certain extent. I input the VBA on a file that i am working on and realised if the change on the worksheet is made due to an extraction from another tab (=another cell) the date is not changed. but if i made the change on the worksheet directly, the date and time changes. Able to assist to provide some advice please.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: show the date and time when there is an change in the worksheet

    If change is taking place in Sheet1 from Sheet2, is it from formula?

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: show the date and time when there is an change in the worksheet

    What you are asking for is a Workbook Macro.

    Select the developer tab
    Select Visual Basic
    Select view and then project explorer
    Select your project
    Double Click On This Workbook


    Paste this code in the Module that opens and then close it.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 08-22-2017 at 02:04 PM.

  7. #7
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: show the date and time when there is an change in the worksheet

    Hi

    Doesn't seem to work. I've put a test file to show what I mean. The links are in sheet 1. The date to show should be in sheet 2 in cell I2.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: show the date and time when there is an change in the worksheet

    Paste this for worksheet event of Sheet2
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: show the date and time when there is an change in the worksheet

    .
    Paste this macro into ThisWorkbook module :

    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: show the date and time when there is an change in the worksheet

    OMG Logit. This is an awesome macro!!

  11. #11
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: show the date and time when there is an change in the worksheet

    You are welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to get a macro to change to another worksheet, move data and then add date and time.
    By cykamourn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-06-2015, 08:19 AM
  2. [SOLVED] Show the date and time in a specific cell of last time we run a macro
    By dragon_m0nsta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2012, 04:49 AM
  3. Worksheet Change - Cell has date, show button
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-18-2011, 02:41 PM
  4. Replies: 1
    Last Post: 07-01-2010, 11:32 AM
  5. show current date and time when another cell change
    By herukuncahyono in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-17-2010, 05:51 AM
  6. Date & Time of last worksheet change
    By Nunzio in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-28-2009, 04:01 PM
  7. Change to show time
    By M Jones in forum Excel General
    Replies: 2
    Last Post: 06-01-2005, 07:05 PM

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