Results 1 to 8 of 8

Delete dates not within a date range

Threaded View

  1. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Delete dates not within a date range

    Quote Originally Posted by BowHunter09 View Post
    Thank you AlphaFrog

    When I run the I get a "runtime error 1004" at this line

    "Range("F2:F" & LastRow).SpecialCells(xlCellTypeVisible).EntireRow.Delete".
    I have attach my files to this thread.
    Try this...

        Application.ScreenUpdating = False
        ActiveSheet.AutoFilterMode = False
        Range("F1:F" & LastRow).AutoFilter 1, "<" & lStart, xlOr, ">=" & lEnd + 1
        Range("F2:F" & LastRow).SpecialCells(xlCellTypeVisible).EntireRow.Delete
        ActiveSheet.AutoFilterMode = False
        Application.ScreenUpdating = True
    Last edited by AlphaFrog; 11-12-2013 at 12:14 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Popup box asking the effective date, so macro can delete any dates < entered date.
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2013, 07:40 AM
  2. Date filter, find listed dates and delete whole row
    By zit1343 in forum Excel General
    Replies: 3
    Last Post: 04-25-2012, 08:16 PM
  3. Macro to delete dates > xx date
    By koltregaskes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2011, 10:35 AM
  4. Replies: 8
    Last Post: 02-27-2009, 06:06 PM
  5. Replies: 25
    Last Post: 09-07-2005, 12:05 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