We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Sub Colour_Specific_Rows() Dim rng As Range Dim Rw As Range Dim LastCol As Long Dim lastRow As Long Dim ans LastCol = Cells(1, Columns.count).End(xlToLeft).Column lastRow = Cells(Rows.count, 1).End(xlUp).Row Set rng = Range("A1", Cells(lastRow, LastCol)) For Each Rw In rng.Rows ans = Application.CountIf(Rw, "*_1.jpg*") If ans > 0 Then Rw.Interior.Color = RGB(242, 220, 219) End If Next Rw End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.