Here is one way. The code highlightes the entire row. You can easily change the findme
For e,g you can set it like
findme= "Your stirng to search" . In this code, the findme is linked to a cell reference
Sub serachme()
Dim rFind As Range, Findme As String, sAddr As String, ws As Worksheet
Set ws = Sheets("SHEET METAL")
Findme = ws.Range("G6")
With ws.UsedRange
Set rFind = .Find(What:=Findme, LookAt:=xlWhole, MatchCase:=False, SearchFormat:=False)
If Not rFind Is Nothing Then
sAddr = rFind.Address
Do
rFind.EntireRow.Interior.Color = vbRed
Set rFind = .FindNext(rFind)
Loop While rFind.Address <> sAddr
sAddr = ""
End If
End With
End Sub
Bookmarks