+ Reply to Thread
Results 1 to 3 of 3

Message Box Comparison of Dates Condition

  1. #1
    Registered User
    Join Date
    10-17-2019
    Location
    Kentucky
    MS-Off Ver
    2019 Excel
    Posts
    33

    Message Box Comparison of Dates Condition

    NEW POST:
    I've thought more about this and decided to change my request and use some of what I already have in the vba. I've attached an updated workbook and need the current vba to allow for the following instead:
    1-Show expire message if currently within 15 days from the end date unless have "X-" or "RX-" in the Status column for same row
    2-Show renewal message if currently within 30 days from the end date, renewal message unless have "R-" or "RX-" in the Status column for same row
    3-I need it to be possible to show both messages if currently within 15 days of end date if don't have any of the codes mentioned in #1 or #2.
    4-Don't show either message if currently more than 30 days from the end date.

    Possibilities depending on dates prior to end date and/or codes mentioned above:
    Show renewal message but don't show expire message
    Show renewal message and expire message
    Don't show renewal message but show expire message
    Don't show either message
    Show both messages

    Hopefully this simplifies my request. Thank you for your assistance.


    ------------------------------------------------------------------------------------------
    ORIGINAL POST:
    Good Morning, Excel Experts!

    I'm hoping someone can help me with my issue. I've attached a sample spreadsheet (has two tabs but have the same purpose). I need an additional message box to popup when I first click on the Current Status Due Date field of the affected row (using the below conditions) AND after I click off of it either by pressing tab or pressing enter (using the below conditions).

    Conditions:
    -if Current Status Due Date is within 30 days or less prior to the End Date on same row
    -Unless have "yes" in Current Status Due Date (date could be shown different ways but will always have a slash and a dash: ex. "m/d" or "m/d-yes" or "mm/dd-yes" or "m/dd-yes")

    Your assistance is greatly appreciated.
    Attached Files Attached Files
    Last edited by KolKon; 03-02-2021 at 03:35 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Message Box Comparison of Dates Condition

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    10-17-2019
    Location
    Kentucky
    MS-Off Ver
    2019 Excel
    Posts
    33

    Re: Message Box Comparison of Dates Condition

    This appears to work. I'm going to try it out for a while. Thank you!!!

+ 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. Temperature comparison with time and dates
    By LeslieChow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2020, 01:31 PM
  2. If Condition for Date Comparison
    By mmthomas in forum Excel General
    Replies: 2
    Last Post: 08-19-2019, 10:22 AM
  3. Date Comparison in row - check if dates are increasing
    By zeko90 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-27-2015, 02:06 PM
  4. Replies: 1
    Last Post: 02-10-2014, 02:12 PM
  5. Percentage Complete - Excel 2010 - dates comparison
    By Simon Evans in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2012, 04:57 AM
  6. Amendment to macro so that it loops (comparison of dates)
    By mattbloke in forum Excel General
    Replies: 1
    Last Post: 08-12-2010, 05:38 PM
  7. Replies: 2
    Last Post: 08-21-2006, 03:45 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