+ Reply to Thread
Results 1 to 8 of 8

Macro that automatically inputs "RECHECK STATUS" in cell when date changes in another cell

  1. #1
    Registered User
    Join Date
    05-04-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    3

    Macro that automatically inputs "RECHECK STATUS" in cell when date changes in another cell

    Hello,

    I am having trouble figuring out code to have excel automatically input "RECHECK STATUS" in one cell when the date changes in another cell.

    The dates will be in column D, and "RECHECK STATUS" will be in column E.

    So, for example, if a user changes the date in cell D6, how can I make excel automatically input "RECHECK STATUS" in E6?

    And, for example, if a user changes the date in cell D15, how can I make excel automatically input "RECHECK STATUS" in E15? (Notice I am trying to make this work for the full range of columns D and E).

    Also, I would like the ability to delete "RECHECK STATUS" after status is checked.

    Thank you to anyone who can come up with a solution.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: Macro that automatically inputs "RECHECK STATUS" in cell when date changes in another

    Please Login or Register  to view this content.

    Regards,TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


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

    Re: Macro that automatically inputs "RECHECK STATUS" in cell when date changes in another

    This is a sheet specific macro.

    Enter anything in column D and Column E will ask to Check Status.

    Enter Ok into Column F will Clear entries in Column E and F.


    Because it is worksheet code, it is very easy to install and automatic to use:

    1. right-click the tab name near the bottom of the Excel window
    2. select View Code - this brings up a VBE window
    3. paste the stuff in and close the VBE window



    Please Login or Register  to view this content.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: Macro that automatically inputs "RECHECK STATUS" in cell when date changes in another

    Please note that if you make changes to cells on the sheet within the Change event handler, you need to disable event handling before you make the change(s) and re-enable it afterwards. If you do not do this, you can cause a loop which, at best, will cause a slight delay and, at worst, may cause Excel/VBA to fail.


    Regards, TMS

  5. #5
    Registered User
    Join Date
    05-04-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro that automatically inputs "RECHECK STATUS" in cell when date changes in another

    Thank you very much. You even threw in another great technique for validating check status. How can we make "Check Status" red and bold?

  6. #6
    Registered User
    Join Date
    05-04-2013
    Location
    Michigan
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro that automatically inputs "RECHECK STATUS" in cell when date changes in another

    Thanks very much! Works great. How can we make "RECHECK STATUS" red and bold?

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

    Re: Macro that automatically inputs "RECHECK STATUS" in cell when date changes in another

    Try This.



    Please Login or Register  to view this content.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: Macro that automatically inputs "RECHECK STATUS" in cell when date changes in another

    Not tested but combining mine and other's solutions:

    Please Login or Register  to view this content.

    Regards, TMS

+ 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