+ Reply to Thread
Results 1 to 3 of 3

Show Msg If Range date value is greater then 30 from today's date

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Show Msg If Range date value is greater then 30 from today's date

    hi,
    i have a data in sheets("entry").range("p3")

    to i want to compare this date to Today's date

    if difference found more then 31st days then appear a msgbox

    thank you
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Show Msg If Range date value is greater then 30 from today's date

    Hi HarroonSid- put this in the ThisWorkbook Module of your workbook:
    Please Login or Register  to view this content.
    NOTE: This code assumes P3 contains a numerical Date, not text.

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 05-22-2017 at 08:59 AM.

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Show Msg If Range date value is greater then 30 from today's date

    Thank you leelnich
    its working very well

+ 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] Sumif from date (Today or greater than today) to last date
    By thilag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-23-2015, 03:53 AM
  2. Replies: 4
    Last Post: 09-20-2014, 07:10 AM
  3. [SOLVED] Macros for: If Today's Date minus other date is greater than certain amount of days Then
    By lottidotti in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-24-2012, 04:46 PM
  4. Validate date so entry can not be greater than today
    By imayno in forum Excel General
    Replies: 6
    Last Post: 08-22-2012, 05:08 PM
  5. Terminate use of workbook if today greater then given date
    By waylans in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-19-2008, 07:23 AM
  6. How do I sum a range if the date is is greater than today's date?
    By S2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-08-2005, 04:05 PM
  7. countif a date is greater than today
    By Keith in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-12-2005, 10:06 AM

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