Find/Delete skipping rows
At the end, I'd make a slight modification.
Replace
rng.Delete
WIth
if not rng is nothing then
rng.Delete
end if
--
HTH,
Barb Reinhardt
"GTVT06" wrote:
Hello, Try this
Dim rng As Range
Set rng = Nothing
Set foundcell = SrcHdrRng.Find(What:="Registration Fee")
For Each mycell In Range(foundcell.Address, Cells(SrcLast,
foundcell.Column).Address)
If mycell.Value = "NotApplicable" Then
If mycell.Offset(0, 1).Value = 0 Then
If rng Is Nothing Then
Set rng = Rows(mycell.Row & ":" &
mycell.Row)
Else: Set rng = Union(rng,
Rows(mycell.Row & ":" & mycell.Row))
End If
End If
End If
Next
rng.Delete
|