I want, if D=0 or Blank, delete row. I can't even figure out how to do it with a single value.
Nothing i find on google makes any sense to me
*Edit
If wasn't clear. If D3 was 0 or "" then D3 would delete. If D4 was 0 or "" then D4 would delete.
I want, if D=0 or Blank, delete row. I can't even figure out how to do it with a single value.
Nothing i find on google makes any sense to me
*Edit
If wasn't clear. If D3 was 0 or "" then D3 would delete. If D4 was 0 or "" then D4 would delete.
Last edited by taylorsm; 12-20-2018 at 06:13 PM.
What do you mean by
Just clear contents ???then D4 would delete.
Is it for column "D" or for any cell
- Battle without fear gives no glory - Just try
Entire row.
D4 = 0 or "" then EntireRow.Delete
D5 = 0 or "" then EntireRow.Delete
I have this, and it works almost. It is deleting a lot, but then just suddenly stops. It isn't getting all the blanks. If I rerun it, it will filter and show the blanks, but it will only delete the first instance. I
With Sheets("Data").Range("E1", Range("E" & Rows.Count).End(xlUp))
.AutoFilter Field:=1, Criteria1:=Array("="), Operator:=xlFilterValues
.Offset(1).EntireRow.Delete
.AutoFilter
End With
Here is my exact code. If you run it you can see what I am talking about. It isn't deleting all the blanks.
Please Login or Register to view this content.
Hello Taylorsm,
You need to clarify further. The sample in your post #1 has blanks or 0 in Columns D and E. Your sample in post #4 does not have any blanks or 0 in Columns D and E.
Cheerio,
vcoolio.
Here again the question about column reference: Is it column "D" to check or all columns ???
try this code i am has test if lot data untll 200.000 row is more faster if using filter
Please Login or Register to view this content.
"ThankyouFor Attention * And Your Help!!"
i'm sorry, i'm not sure where i'm losing everyone. The workbook and code should help. I am just deleting a row if the value in the "D#" cell is one of those options. Check value of D#, if value then delete THAT row. repeat through all
If you run my code then it will. #4 is exactly what I start with, you run my code and it will delete select columns, THEN you end up with with the blanks/0 in the correct columns. Sorry my first post skipped a few steps, but I wanted to give the complete picture.
OK so issue relates to that E not having a value and therefore xlendup is stopping to soon. I can redirect it to look at A and will likely have no issues, but how do I locate the last row of data, regardless of column
Last edited by taylorsm; 12-21-2018 at 09:59 AM.
see if that helpsPlease Login or Register to view this content.
Type mismatch error
Works on your attachment in your first Post.
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks