Delete veriable range of rows quickly

KLund1

Board Regular
Joined
Oct 27, 2005
Messages
64
I have 10,000 rows of data. Column D has $ amts from positive to negative, with about 4,000 to 5,000 rows with a $0.00 amt. The starting row and ending row of $0.0 changes each week we use this data.
Does anyone have some excel 2000 macro code that can quickly delete these rows?
I wrote a macro that can do this 1 row at a time, but our old, slow work computer takes 15 minutes to run it.
Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Code:
a = ThisWorkbook.Sheets("Name").Range("D" & _
    ThisWorkbook.Sheets("Name").Range("D" & Rows.Count).End(xlUp).Row).Row
 
Range("D:D" & a).ClearContents
 
Upvote 0

Forum statistics

Threads
1,224,578
Messages
6,179,652
Members
452,934
Latest member
mm1t1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top