Shade Cells Yellows if Column (D) has a value of C in Cell

G

Guest

Please help me put together a macro that will search Column (D), starting in
row 30 for a character 'C', if true then shade all cells in that row yellow
between Column D and Column AC and strike through all values in that same
range of Columns. Column D will have at the most one character in a row.

Thanks so much for the help.
 
J

JW

Sub highlightStuff()
For i = 30 To Cells(Rows.Count, 4).End(xlUp).Row
If Cells(i, 4).Text = "C" Then
With Range(Cells(i, 4), Cells(i, 29))
.Interior.ColorIndex = 6
.Font.Strikethrough = True
End With
End If
Next i
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top