I have this VBA code:
Sub CleanSheet()
For Counter = 2 To 600
Set curCell = Worksheets("MY_WORKSHEET").Cells(Counter, 24)
If (curCell.Value) = "NO" Then Worksheets("MY_WORKSHEET").Range("B2:T2").Value = Null
Next Counter
End Sub
What I need to do is look at column "X" (Cell Count 24) and make the Range B:T starting at row "2" null if "NO" and then Loop it to the next row and so on and stop at row 600. This code obviously ONLY sees Range("B2:T2") so no matter what ALWAYS Nulls that range.
How do I change the range to match the current row to match column "X"?
Bookmarks