Sub Match3()
Dim i, lrow As Long
lrow = ActiveSheet.Cells.Find(What:="*", SearchOrder:=xlRows, _
SearchDirection:=xlPrevious, LookIn:=xlValues).Row
srch = Application.InputBox("Enter the word to match", , , , , , , 2)
For i = 2 To lrow Step 1
If ActiveSheet.Cells(i, "A").Value = srch Then
If ActiveSheet.Cells(i + 1, "A").Value = srch Then
If ActiveSheet.Cells(i + 2, "A").Value = srch Then
ActiveSheet.Range(Cells(i, "A"), Cells(i + 2, "A")).Interior.Color = 65535
End If
End If
End If
Next
End Sub