berty2000
Board Regular
- Joined
- Mar 29, 2011
- Messages
- 71
Hi guys
Got a list of about 60 names (Range D4:D70) and put in a search box to search them.
Say searching for the name Dave it steps through about 6 different Daves, I would like it to highlight each Dave in Yellow and when I close the seach box they stay yellow, so they are easy to find as each is hyperlinked.
When I call up another name with the search it will change the yellow highlighted ones back.
This is my code so far:
Sheet1
Private Sub CommandButton1_Click()
'clear cells
Range("d4:d100").Interior.ColorIndex = 0
'open a find box
Application.Dialogs(xlDialogFormulaFind).Show
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
End Sub
Any Clues as keep going round in circles.
Got a list of about 60 names (Range D4:D70) and put in a search box to search them.
Say searching for the name Dave it steps through about 6 different Daves, I would like it to highlight each Dave in Yellow and when I close the seach box they stay yellow, so they are easy to find as each is hyperlinked.
When I call up another name with the search it will change the yellow highlighted ones back.
This is my code so far:
Sheet1
Private Sub CommandButton1_Click()
'clear cells
Range("d4:d100").Interior.ColorIndex = 0
'open a find box
Application.Dialogs(xlDialogFormulaFind).Show
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
End Sub
Any Clues as keep going round in circles.