How can I stop the procedure when a certain row is hit, then proceed with F8 once I've determine it's okay to proceed?
With this macro, I would like to Stop once the first row is found that matches the criteria, or even, Stop the loop when a certain row is hit.
Code: Select all
Sub InstructorTime()
Dim lr As Long: lr = Sheet2.Range("B" & Sheet2.Rows.Count).End(xlUp).Row
Dim i As Long
For i = 2 To lr
If Sheet2.Range("E" & i).Value2 Like "Instructor*" Then
Sheet2.Range("F" & i).Value2 = ""
End If
Next i
End Sub