This is a very simple procedure, yet for some rows of the spreadsheet the code works, and for others it doesn't. If I stop the procedure at that point and go back to the row that didn't work initially and re-run it, it normally works on that row, but then doesn't work on a row further down. Can I do something to make this work 100%? Thanks Sharon
Dim r as Range
Worksheets("Plan 1").Range("Q7").Activate
For Each r in Range ("Q7:Q350")
If r.text = "empty" then
Selection.EntireRow.Delete
Else
Selection.Offset(1,0).Select
End If
Next
Dim r as Range
Worksheets("Plan 1").Range("Q7").Activate
For Each r in Range ("Q7:Q350")
If r.text = "empty" then
Selection.EntireRow.Delete
Else
Selection.Offset(1,0).Select
End If
Next