Need to highlight the text with Red color for entire row

vijavad

New Member
Joined
May 27, 2017
Messages
17
Platform
  1. Windows
Hi Team

I have created drop down list in column " C" and i have Client Reject, Offshore Reject , Onsite Reject and so on other drop down filters...

Now whenever i select the drop down list and if it has a keyword REJECT from the drop down list the entire row text font color to be changed to RED.

;);)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
This is sheet code.
To install sheet code:
1. Right-click the worksheet tab you want to apply it to and choose 'View Code'. This will open the VBE window.
2. Copy the code below from your browser window and paste it into the white space in the VBE window.
3. Close the VBE window and Save the workbook. If you are using Excel 2007 or a later version do a SaveAs and save it as a macro-enabled workbook (.xlsm file extension).
4. Make sure you have enabled macros whenever you open the file or the code will not run.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range
 If Not Intersect(Target, Range("C:C")) Is Nothing Then
    For Each c In Intersect(Target, Range("C:C"))
        If InStr(UCase(c.Value), "REJECT") > 0 Then
            With Intersect(Rows(c.Row), Me.UsedRange)
                .Font.Color = vbRed
            End With
        Else
            With Intersect(Rows(c.Row), Me.UsedRange)
                .Font.Color = vbBlack
            End With
        End If
    Next c
End If
End Sub
 
Upvote 0
Joe i need in formula to be used in condtional formatting. I am not using macros. Can u pleae suggest
 
Upvote 0
Joe i need in formula to be used in condtional formatting. I am not using macros. Can u pleae suggest
(1.) Select the entire range you want to apply the CF to.
(2.) Then use this CF formula:
Rich (BB code):
=ISNUMBER(SEARCH("reject",$C1))
change the number in bold red to the row number for the first col C cell in the range you selected in step 1.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top