+ Reply to Thread
Results 1 to 8 of 8

Auto-change dropdown value when Due Date passes

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    37

    Auto-change dropdown value when Due Date passes

    Hi,

    I have the attached worksheet, in which we keep track of meeting topics in each row. Each row also contains a status & Due Date. When the status is "Open", but the due date is passed, I would like this to auto change to "Due".

    Right now I am using a change event, which obviously does not really help since I have to activate the cell in some way to trigger the code. Does anyone have any idea what code I would need to make this work?

    Details:
    Column I contains a drop-down with 4 statuses (Due, Open, Done, Closed). This is the text I want changed when the due date passes.
    Column J contains the due date
    Column M contains a formula which when the status is either Due or Open & the due date is passed, it is TRUE.

    Current code which does not solve my issue:

    Please Login or Register  to view this content.
    ExcelForum_Status Change Based on Date.xlsm

  2. #2
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Auto-change dropdown value when Due Date passes

    Hi,

    Use the same code in workbook open event. On workbook open, each row with Due date can be checked and respective Status can be updated accordingly.

    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Auto-change dropdown value when Due Date passes

    Hi pareshj,

    I'm not too savvy altering code to fit the location. How exactly would you change it so that it works in ThisWorkbook? Also, do you mean that the code should be in both locations or should I move it?

    Thank you for your input.


    FYI this is what I tried:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Auto-change dropdown value when Due Date passes

    Hi,

    Check the attached workbook, I have code to trigger on workbook. Please change in this code if any further changes required.

    What I have done in the attached workbook, I have checked each date in column J and if condition is not satisfied, Column I will get changed to "Due"

    Note: Check the WorkBook Open Event

    ExcelForum_Status Change Based on Date.xlsm


    Regards,
    Paresh J

  5. #5
    Registered User
    Join Date
    04-18-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Auto-change dropdown value when Due Date passes

    Hi,

    Thanks for including the attachment - it makes it much easier to understand.

    I just had to changed the >= to <= and then it acheived the primary function. However, this also is changing the ones that say "Done" and "Closed" which I would like to keep the same even though the dates are passed. Do you know how to include this parameter into the code?

  6. #6
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Auto-change dropdown value when Due Date passes

    Hi,

    Do you want to change the status of only OPEN cases? If yes, You can use the following code for the same:

    Note: Only change the following line

    Please Login or Register  to view this content.

    Regards,
    Paresh J

  7. #7
    Registered User
    Join Date
    04-18-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Auto-change dropdown value when Due Date passes

    Works like a charm! All I did was once again change the code from >= to <=.

    Thanks again!

  8. #8
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Auto-change dropdown value when Due Date passes

    Hi,

    Please mark this thread as SOLVED if you got your solution and click * Add reputation as a way to thanks.

    Regards,
    Paresh J

+ 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. Cell Color Change after time passes from a certain date
    By Ruggyz in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-26-2015, 12:28 PM
  2. auto change font colour of a row when using dropdown
    By jeffcox in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2014, 09:44 AM
  3. Replies: 0
    Last Post: 10-09-2013, 10:26 PM
  4. Auto delete rows after a month passes
    By Mystojam in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-14-2013, 04:20 PM
  5. UserForm text box always passes the current date not the date entered
    By g8r777 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2012, 02:13 PM

Tags for this Thread

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