Delete entire row if is zero value

Panoos64

Well-known Member
Joined
Mar 1, 2014
Messages
882
Hi to all of you, kindly require to provide me VBA so that to delete entire row if the value in col. "J" is "0", zero . Therefore that the rows arises to 700000+ and the code due to other commands should not start with "Dim as Long.... e.t.c." Thank you all in advance
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
How about
VBA Code:
Sub panoos()
    With ActiveSheet
        .Range("A1:J1").AutoFilter 10, 0
        .AutoFilter.Range.Offset(1).EntireRow.Delete
        .AutoFilterMode = False
    End With
End Sub
 
Upvote 0
Hi Fluff, due to lot of rows the code is too slow. Is there any other type of code to run? Thank you and have a great day!
 
Upvote 0
Sorry Fluff, it was hardware issue and it works perfect! Thank you so much for your continued support. Hv a lovely day!
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,969
Members
449,059
Latest member
oculus

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