Something like this
![]()
Option Explicit Sub IbanNo() Dim LR As Long Dim iX As Long Dim rRng As Range LR = ActiveSheet.UsedRange.Rows.Count For iX = 4 To LR If Left(Cells(iX, 16), 4) = "PT50" Then If rRng Is Nothing Then Set rRng = Cells(iX, 16) Else: Set rRng = Union(rRng, Cells(iX, 16)) End If End If Next iX With rRng .Interior.ColorIndex = 3 End With End Sub
Bookmarks