+ Reply to Thread
Results 1 to 3 of 3

Help speed up code to remove rows with 0 value

  1. #1
    Registered User
    Join Date
    05-17-2010
    Location
    Tennessee
    MS-Off Ver
    Office365
    Posts
    24

    Help speed up code to remove rows with 0 value

    I am using the following code to remove all rows on a worksheet with a zero value in column H. Because the worksheet has thousands of entries, this loop is taking forever! Any suggestions on how to streamline this? Thanks!!

    Randi Lee

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Help speed up code to remove rows with 0 value

    Maybe:

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    05-17-2010
    Location
    Tennessee
    MS-Off Ver
    Office365
    Posts
    24

    Re: Help speed up code to remove rows with 0 value

    I had to change

    .AutoFilter Field:=8, Criteria1:="0"
    to

    .AutoFilter Field:=8, Criteria1:="0.00"
    or it auto-filtered to blanks but it works great otherwise! Thanks!

+ 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