I want to delete all rows that contain empty cells in a particular range (columns A and B). I tried multiple options, which I found here on SO.
Columns("A:B").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
and I have also tried:
Lastrow = Range("A:Z").Find("*", , , , xlByRows, xlPrevious).Row
For i = Lastrow To 1 Step -1
If Application.CountA(Range(Cells(i, 1), Cells(i, 2))) = 0 Then Rows(i).Delete
Next i
However: both options don't find my empty cells. I think the reason must be that they have been pasted (PasteSpecial-Values only) into my Excel sheet. They contain no values, but is it possible there's still some metadata that prevents them from being "found" by the algorithm? Both macros don't find any empty cells and basically do nothing. Thank you for your help.