+ Reply to Thread
Results 1 to 3 of 3

Delete rows based on date range

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    washington, dc
    MS-Off Ver
    Excel 2010
    Posts
    10

    Delete rows based on date range

    Hello,

    I am trying to write a simple macro that will delete a row of data if the date is not in a certain range (in this particular case, if it is not within a certain year range). The data will always have an unknown number of rows, and the dates are always formatted as MM/DD/YYYY and located in column B. I was thinking I can do some sort of Do-While loop until it reaches two empty cells, but I'm not sure how to specify the date range. Any suggestions or help would be greatly appreciated.

    Thank you.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Delete rows based on date range

    This should get you started in the right direction.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-10-2013
    Location
    washington, dc
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Delete rows based on date range

    Thank you! It did help! I actually decided to go this route, also I moved the date range to Column A:

    Please Login or Register  to view this content.

+ 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. Delete a range of rows based on a known and unknown text value
    By rjssl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2013, 10:37 AM
  2. Delete rows based on date
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-09-2009, 01:44 AM
  3. Delete rows based on date
    By mattbrem in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2009, 12:22 PM
  4. Delete Rows based on date range.
    By ge0rge in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2009, 10:52 AM
  5. Delete rows based on date range entered?
    By fzrdiva in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2006, 08:52 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