I tested the code in a new sheet and it works fine. But it doesn't work in my actual sheet where I want to use it.
The code stop at Selection.EntireRow.Delete in yellow
How I can trace or figure out which condition exactly cause this in my sheet?
There are no merged cells in the applicable range.
My Code:
Range("A69:A3000").Select
For Each Cell In Selection
If Cell.Value = "YES" Then
Rows(Cell.Row).ClearContents
End If
Next
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.EntireRow.Delete
I apreciate any hint
Andi