+ Reply to Thread
Results 1 to 3 of 3

Macro to loop through one column of dates and if date's already passed check other column

  1. #1
    Registered User
    Join Date
    03-16-2020
    Location
    Brazil
    MS-Off Ver
    2016
    Posts
    2

    Macro to loop through one column of dates and if date's already passed check other column

    So I have two date columns, I need help with a macro that can go into the first column (AK) and check for the dates, for each date that it finds that has already passed (smaller than today) it must go into the second column and check if the corresponding cell is empty (this will be on column AM). If the second column is empty I'd like for it to send an email with outlook to a person (email address is setup on column L) warning them to please check the why hasn't it been filled yet. If the corresponding cell on the second column (AM) is not empty, it can move on to the next. Lastly, if the date on column AK is bigger than today it can move to the cell below and if empty, the loop should stop.

    Please help!

    I had managed to find a macro here to check through the first column and warn me when the date is smaller than today:

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by Gsili; 03-20-2020 at 11:14 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Macro to loop through one column of dates and if date's already passed check other col

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. Thanks

  3. #3
    Registered User
    Join Date
    03-16-2020
    Location
    Brazil
    MS-Off Ver
    2016
    Posts
    2

    Re: Macro to loop through one column of dates and if date's already passed check other col

    Thank you very much Pepe, I apologize for the mistake and I'll keep my eye on it next time!

+ 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. Replies: 8
    Last Post: 05-03-2016, 12:22 PM
  2. How to Lock Row and Column when date is passed
    By atulexel79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2015, 01:42 AM
  3. Highlight row if date in column is passed.
    By d-j-s in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-01-2014, 12:44 PM
  4. Column Protect if Current Date is Passed
    By Abdul Haneef in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 06-13-2012, 11:30 AM
  5. VBA Loop to check if a date is between two dates
    By jmb77 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2010, 11:47 AM
  6. Replies: 0
    Last Post: 07-20-2010, 11:42 AM
  7. Check column of dates against todays date
    By Andrew82 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-15-2005, 07:06 AM

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