like this ?
X_Loop.xlsm
contains:
Option Explicit
Private Sub cmdStart_Click()
Dim xlRng As Range
Dim i As Integer
Dim lngStart As Integer, lngEnd As Integer, lngCol As Integer
lngStart = 7
lngEnd = 16
lngCol = 4
Set xlRng = Range(Cells(lngStart, lngCol + 1), Cells(lngEnd, lngCol + 1)).Find(What:="x", LookIn:=xlValues, lookat:=xlWhole, MatchCase:=False)
If Not xlRng Is Nothing Then
xlRng.ClearContents
If xlRng.Row <> lngEnd Then
lngStart = xlRng.Row + 1
End If
End If
For i = lngStart To lngEnd
If Val(Cells(i, lngCol).Value) > 0 Then
Cells(i, lngCol + 1).Value2 = "X"
Exit Sub
End If
Next i
End Sub
Bookmarks