hilighting entire row

M

mangesh

I want to highlight entire row automatically with yellow color if i typ
"completed" in a cell of that particular row.

Could any one help me
 
J

Jim May

In your current sheet module paste in:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Value = "Completed" Or Target.Value = "completed" Then
Cells.Interior.ColorIndex = xlNone
Target.EntireRow.Interior.ColorIndex = 6
End If
End Sub

Only one row at-a-time will be highlighted; Is that what
you want?
 
S

Sloth

Select all cells by clicking the square in the upper left hand corner of the
sheet.

Click Format->Conditional Formatting

Select "Formula is" and enter this formula (with both equals)

=$D1="completed"

click format and go to the "Patterns" tab. Select the color you want.
Select "OK" twice.

Now whenever a cell in column D equals "completed" the whole row will be
highlighted. Change D to the column you want.
 
Top