+ Reply to Thread
Results 1 to 8 of 8

Prompt user to add a comment if cell is changed.

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    4

    Smile Prompt user to add a comment if cell is changed.

    Hello,

    I'm creating a time keeping system for the company I'm currently working for. Is it possible to track changes made to cells and have a pop up dialog box that will allow the user to add a reason why they are changing the cell. For instance, If I work 8 hours on Monday at the office but when I get home I work an additional hour. When I change the cell from 8 to 9 I would like to add the reason for the change.

    This is the spreadsheet I am using. Thanks in advance for any help offered!

    Timesheet Test.xlsx

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Prompt user to add a comment if cell is changed.

    Hello jayman5585,

    I wrote this macro awhile back to time stamp cells and made a few changes for your needs. I have added the macros below to the attached workbook. Let me know if you need any changes.

    Worksheet Change Event Code
    Please Login or Register  to view this content.
    Module1 Macro Code
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    07-02-2013
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Prompt user to add a comment if cell is changed.

    Leith,

    Thank you so much for your reply. This will work perfectly for my needs!

    Thank you again for the quick response!!

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Prompt user to add a comment if cell is changed.

    Hello jayman5585,

    You're welcome. It's nice to hear it works the first time and no changes are needed.

  5. #5
    Registered User
    Join Date
    07-02-2013
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Prompt user to add a comment if cell is changed.

    Leith,

    Is there a way to modify the code so the comment box will only appear if you change an already populated cell? Say I change a cell from blank to 8 nothing happens but if I change the cell from 8 to 9 I get the pop up message asking if I want to make a comment.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Prompt user to add a comment if cell is changed.

    Hello Jayman5585,

    It took a couple of changes to make this happen. Here is the code. There is now an extra worksheet event macro. This records the cell value before the the user changes the value. Just copy and paste these code into workbook. If you have any problems, let me know.

    Worksheet Event Macro Code
    Please Login or Register  to view this content.
    Module1 Macro Code to Timestamp the Cell
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-02-2013
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Prompt user to add a comment if cell is changed.

    Awesome! This is perfect! Thank you so much for your help!!

  8. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Prompt user to add a comment if cell is changed.

    Hello Jayman5585,

    You're welcome.

+ 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