Hello!
I used the following code to highlight an entire row if column F contained specific text, but I'm now struggling with how to also specify that it must be dated after 1/1/2013. So I'm looking to include those two conditions without using conditional formatting.
Any feedback is greatly appreciated. Thank YOU!!! ?
Dim Cell As Range, Addr As String
With Range("F1", Cells(Rows.Count, "F").End(xlUp))
Set Cell = .Find("*Unit Costs*", , xlValues, , , , False, , False)
If Not Cell Is Nothing Then
Addr = Cell.Address
Do
Cell.EntireRow.Interior.Color = RGB(230, 184, 183)
Set Cell = .FindNext(Cell)
Loop While Not Cell Is Nothing And Cell.Address <> Addr
End If
I used the following code to highlight an entire row if column F contained specific text, but I'm now struggling with how to also specify that it must be dated after 1/1/2013. So I'm looking to include those two conditions without using conditional formatting.
Any feedback is greatly appreciated. Thank YOU!!! ?
Dim Cell As Range, Addr As String
With Range("F1", Cells(Rows.Count, "F").End(xlUp))
Set Cell = .Find("*Unit Costs*", , xlValues, , , , False, , False)
If Not Cell Is Nothing Then
Addr = Cell.Address
Do
Cell.EntireRow.Interior.Color = RGB(230, 184, 183)
Set Cell = .FindNext(Cell)
Loop While Not Cell Is Nothing And Cell.Address <> Addr
End If