pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
The code below seaches whatever words is entered in cell "A1", simply control+f thing...what i want here is that everytime i hit enter it searches the next result, i want that to be highted temporarily with any colour say blue....so that it makes my work easy to locate. Thanks
in simplr word hilight the search result with colour, but when the search move to the other cell it should not leave the colour behind. thanks
Sub Macro2()
'find the word in cell a1
Cells.Find(What:=Range("A1").Value, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
End Sub
in simplr word hilight the search result with colour, but when the search move to the other cell it should not leave the colour behind. thanks
Sub Macro2()
'find the word in cell a1
Cells.Find(What:=Range("A1").Value, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
End Sub