O
oakman
Greetings,
I have a list of names on my Input Sheet . I have named this cell
range "NAME". Next to each name on the list, i have put a formula to
show the word "PRINT" or leave blank. I have named this cell range
"UNITS". I am trying to color and bold the cells in the "NAME" range
whenever the word "PRINT" appears in the "UNITS" cell range. I have
managed to get this far with code, but I know I am missing something
really inmportant. Any suggetions would be greatly appreciated!
Thanks in advance!
For Each c In Worksheets("Input").Range("UNITS").Cells
If c.Value = "PRINT" Then
With Range("NAME")
Font.Bold = True
Interior.Color = RGB(255, 255, 0)
End With
End If
Next c
End Sub
I have a list of names on my Input Sheet . I have named this cell
range "NAME". Next to each name on the list, i have put a formula to
show the word "PRINT" or leave blank. I have named this cell range
"UNITS". I am trying to color and bold the cells in the "NAME" range
whenever the word "PRINT" appears in the "UNITS" cell range. I have
managed to get this far with code, but I know I am missing something
really inmportant. Any suggetions would be greatly appreciated!
Thanks in advance!
For Each c In Worksheets("Input").Range("UNITS").Cells
If c.Value = "PRINT" Then
With Range("NAME")
Font.Bold = True
Interior.Color = RGB(255, 255, 0)
End With
End If
Next c
End Sub