Link to home
Start Free TrialLog in
Avatar of Jagwarman
Jagwarman

asked on

What is the best and quickest vba code to delete large amounts of data

I have tried several of the vba solutions posted here on EE but they all take a long time to complete. The file I have has over 300,000 rows of data and I need to delete every row that has a zero [i.e. where it = 0]  in column 'B'

Many thanks
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

Try

copy the good rows to a new sheet
delete the original sheet
rename the new sheet to the original sheet
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jagwarman
Jagwarman

ASKER

great thanks Martin
You're welcome and I'm glad I was able to help.

In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2015