J
JMay
After selecting a range, say D5
39
where d20 might have = d25 and d25 is blank
the folowing code is stopping <<HERE-below>>on d20 - haven't I provided for
this?
TIA,
Sub DeleteRows()
Dim r As Long
With Selection
For r = .Cells.Count To 1 Step -1
With .Cells(r, 1)
HERE >>> If .Value = 0 Or .Value = "#REF!" Then .EntireRow.Delete
End With
Next
End With
End Sub
where d20 might have = d25 and d25 is blank
the folowing code is stopping <<HERE-below>>on d20 - haven't I provided for
this?
TIA,
Sub DeleteRows()
Dim r As Long
With Selection
For r = .Cells.Count To 1 Step -1
With .Cells(r, 1)
HERE >>> If .Value = 0 Or .Value = "#REF!" Then .EntireRow.Delete
End With
Next
End With
End Sub