ub Prototypefind()
Dim i As Integer
Dim ArrayName As Variant
Dim TempString As String
Dim ws As Worksheet
Dim LeftTemp As String
Dim rng1 As Range
ArrayName = Range("NoPriceNames")
Set ws = Worksheets("RedAmberGreen")
For i = 1 To UBound(ArrayName)
TempString = ArrayName(i, 1)
LeftTemp = Left(TempString, 4)
Set rng1 = ws.Columns("C:O").Find(LeftTemp, , xlFormulas, xlPart, xlByRows, xlNext)
If Not rng1 Is Nothing Then
rng1.Interior.Color = vbRed
MsgBox "found " & LeftTemp & " in " & rng1.Parent.Name & " " & rng1.Address(False, False)
End If
Next i
End Sub
|