+ Reply to Thread
Results 1 to 3 of 3

Creat Alert when date is between two dates

  1. #1
    Registered User
    Join Date
    10-24-2014
    Location
    Alabama
    MS-Off Ver
    2013
    Posts
    2

    Creat Alert when date is between two dates

    I'm trying to create a macro that will check column (D3:D1000) and send an alert upon opening the spreadsheet if any values falls between (=Today()+45) and (=Today()). I've gotten it to work with just checking D3, but not sure how to get it to loop through the other rows. I have cell A1 set to =Today()


    Private Sub Workbook_Open()

    If Range("A1") >= Range("D3") - 45 Then
    response = MsgBox("Check NDA Date", , "Alert!")
    End If



    End Sub

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,637

    Re: Creat Alert when date is between two dates

    Pl see attached file.Workbook_open event is used.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-24-2014
    Location
    Alabama
    MS-Off Ver
    2013
    Posts
    2

    Re: Creat Alert when date is between two dates

    Thanks! That did the trick!

+ 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] POP UP Alert for Expiring and Expired Dates
    By jon112211 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2014, 12:09 PM
  2. alarm or alert for dates in excel
    By chrismartinpetty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2013, 07:56 AM
  3. Coloured Alert For The Expiry Dates
    By serdal22 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2011, 08:10 PM
  4. Email alert on due dates
    By mstrezoska in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-20-2011, 10:23 PM
  5. Help with dates please - novice alert!
    By pinkpopster in forum Excel General
    Replies: 5
    Last Post: 11-08-2006, 04:50 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