Private Sub Worksheet_Activate()
Range("B3:B" & Cells(Rows.Count, 2).End(xlUp).Row).Interior.ColorIndex = xlNone
End Sub
Sub Ffind()
Dim Found As Range, tempcell As Range, X As Variant
Range("B3:B" & Cells(Rows.Count, 2).End(xlUp).Row).Interior.ColorIndex = xlNone
X = InputBox("Please enter what you want to find")
If X <> "" Then
Set Found = Columns(2).Find(X, , xlValues, xlPart)
If Found Is Nothing Then
MsgBox X & " Not Found"
Exit Sub
Else
Application.GoTo Found.Offset(, -1), True
Found.Interior.ColorIndex = 3
End If
If MsgBox("Find again", vbYesNo) = vbYes Then
Do
Set tempcell = Columns(2).FindNext(After:=Found)
If Found.Row >= tempcell.Row And Found.Column >= tempcell.Column Then
MsgBox "Not found again"
Exit Do
End If
Set Found = tempcell
Range("B3:B" & Cells(Rows.Count, 2).End(xlUp).Row).Interior.ColorIndex = xlNone
Application.GoTo Found.Offset(, -1), True
Found.Interior.ColorIndex = 3
If MsgBox("Find again", vbYesNo) = vbNo Then Exit Do
Loop
End If
Else: Exit Sub
End If
End Sub