Color Entire Row Based on Cell Value

前端 未结 3 1483
小鲜肉
小鲜肉 2020-12-17 16:50

I\'m trying to color an entire row if two cells in that row have the same value.

For i = 2 To LastRow
    If Worksheets(\"Request Results\").Cells(i, 4).Valu         


        
3条回答
  •  南方客
    南方客 (楼主)
    2020-12-17 17:09

    I used something like this on a similar row highlighting problem.

    For Each Rng in SomeRange.Columns(1).Cells
      Rng.EntireRow.Interior.Color = 5296274
    Next
    

提交回复
热议问题