+ Reply to Thread
Results 1 to 2 of 2

VBA Code - Autofilter and delete

  1. #1
    Registered User
    Join Date
    04-15-2009
    Location
    Israel
    MS-Off Ver
    Excel 2019
    Posts
    79

    VBA Code - Autofilter and delete

    Hello Experts

    I have a code that dosent work that need to filter "FALSE" and delete all FALSE lines
    ( in the fle i have more than 40,000 lines)

    Please Login or Register  to view this content.
    Thanks
    Shark
    Last edited by Shark Man; 07-25-2010 at 03:49 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: VBA Code - Autofilter and delete

    If you iterate and delete you should always work bottom up rather than top down
    (ie For r = LR To 2 Step -1 [and removed the r=r-1])

    Without knowing your setup (headers etc) you could as you say avoid the iteration and apply an Auto Filter

    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)

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