How can we create a search function on excel? I want to be able to put a word in a search box and the rows containing it should be 'selected'.
I have this :
Sub find_highlight() 
w = InputBox("What to find?") 
Cells.Find(What:=(w), After:=ActiveCell, LookIn:=xlFormulas, _ 
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ 
MatchCase:=False).Activate 
 'Rows("51:51").Select
With Selection.Interior 
    .ColorIndex = 6 
    .Pattern = xlSolid 
    .PatternColorIndex = xlAutomatic 
End With 
End Sub 
This only highlights one word and only one. I want all of the rows containing that word to be selected.
