Hi Chris,
Try:
'======================================
Sub FormatFoundValues2()
Dim entry As Range, foundentry As Range, firstaddress As String
Dim rng1 As Range, Rng2 As Range
Set rng1 = Range("b4:h76")
Set Rng2 = Range("J2:J30")
For Each entry In rng1
If Not IsError(Application.Match _
(entry.Value, Rng2, 0)) Then
Set foundentry = rng1.Find(After:=rng1(1), _
What:=entry.Value, _
SearchOrder:=xlByColumns, _
SearchDirection:=xlNext, _
LookIn:=xlFormulas) ' <<====== ADDED
If Not foundentry Is Nothing Then
firstaddress = foundentry.Address
Do
With foundentry.Font
.ColorIndex = 5
.Bold = True
.Italic = True
End With
Set foundentry = rng1.FindNext(After:=foundentry)
Loop While Not foundentry Is Nothing _
And foundentry.Address < firstaddress
End If
End If
Next entry
End Sub
'<<======================================
--
---
Regards,
Norman
"chrisrowe_cr"
wrote in message
news:chrisrowe_cr.1t56yo_1122995160.4079@excelforu m-nospam.com...
hmm,
I tried this and woohoo it does work only it doesnt work...
I figured out why tho, the values I want to format are all being pulled
in via a lookup, is there anyway to make excel think they are just there
and not part of a formula?
--
chrisrowe_cr
------------------------------------------------------------------------
chrisrowe_cr's Profile:
http://www.excelforum.com/member.php...o&userid=25220
View this thread: http://www.excelforum.com/showthread...hreadid=392077