I'm using this piece of code (as part of a macro) to delete rows 28 to 62 when the values in column F are zero. In addition to this, I want to be able to also delete rows 20 to 27, when the value in C22 is "-". Is there a way to achieve this bearing in mind that not all rows in the range C20:C27 will show "-" ?
Many thanks![]()
With ActiveSheet For J = 62 To 28 Step -1 If .Cells(J, "F") = 0 Then .Rows(J).EntireRow.Delete Next J End With
Bookmarks