Patriot2879
Well-known Member
- Joined
- Feb 1, 2018
- Messages
- 1,259
- Office Version
- 2010
- Platform
- Windows
Hi good morning, hope you can help. I have the code below where if OOH is in a cell I want the whole row to change colour, but the code below is not working, hope you can help?
Code:
Private Sub Highlight()
Dim col As Range
Dim value(0) As Integer
Worksheets("Sheet1").Activate
Set col = Range("H5:h")
If col.value = OOH Then
ActiveSheet.Row.Select
With Selection.Interior
.Color = -19125255
.Font.Bold = True
End With
End If
End Sub