+ Reply to Thread
Results 1 to 4 of 4

Deleting An Entire Row if Date is not Today in Any One of Three Columns

  1. #1
    Registered User
    Join Date
    04-16-2012
    Location
    Owensboro, Ky
    MS-Off Ver
    Excel 2003
    Posts
    1

    Deleting An Entire Row if Date is not Today in Any One of Three Columns

    Hello,

    Hope the thread title isn't too confusing. I have a spreadsheet that calculates dates in columns F,G, and H based on date entered in column E. What I want is a macro that can look at any of the dates in columns F-H (excluding header) and if there's is not a date that is equal to Today's date in any of those cells, to delete the entire row.

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    04-12-2012
    Location
    MD, England
    MS-Off Ver
    Excel 2003
    Posts
    142

    Re: Deleting An Entire Row if Date is not Today in Any One of Three Columns

    If I understand you correctly this should work...
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 04-18-2012 at 09:01 PM. Reason: Added Code Tags

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Deleting An Entire Row if Date is not Today in Any One of Three Columns

    Hello gmk,

    I wrapped your code. This makes the code easier to read by preserving the formatting and to copy. Please do this in future posts. If you don not know how then look at my signature line.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor
    Join Date
    04-12-2012
    Location
    MD, England
    MS-Off Ver
    Excel 2003
    Posts
    142

    Re: Deleting An Entire Row if Date is not Today in Any One of Three Columns

    Hi Leith
    Thanks for that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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