ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional Format Text - Yes/No (https://www.excelbanter.com/excel-discussion-misc-queries/214229-conditional-format-text-yes-no.html)

gibbylinks

Conditional Format Text - Yes/No
 
I have a drop down box with YES/NO. I want to turn the text to RED if "Yes"
is selected and Blue if "No" is selected.

How do I apply it to the one cell ?

Thanks

Rob Wills

Conditional Format Text - Yes/No
 
Hi

Have a look at Conditional formatting

HTH
Rob
===================

"gibbylinks" wrote:

I have a drop down box with YES/NO. I want to turn the text to RED if "Yes"
is selected and Blue if "No" is selected.

How do I apply it to the one cell ?

Thanks


Rob Wills

Conditional Format Text - Yes/No
 
or alternatively place the following in the vba for that sheet

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("E7").Value = "Yes" Then
Range("E7").Font.Color = vbRed
ElseIf Range("E7").Value = "No" Then
Range("E7").Font.Color = vbBlue
End If
End Sub

"gibbylinks" wrote:

I have a drop down box with YES/NO. I want to turn the text to RED if "Yes"
is selected and Blue if "No" is selected.

How do I apply it to the one cell ?

Thanks


gibbylinks

Conditional Format Text - Yes/No
 
I've looked at conditional formatting. I used to be able to fly this under
the old versions, but (sorry should have said) I'm using Office 2007 and I
can't see how to apply it to jus tone cell !!

Very confusing

"Rob Wills" wrote:

Hi

Have a look at Conditional formatting

HTH
Rob
===================

"gibbylinks" wrote:

I have a drop down box with YES/NO. I want to turn the text to RED if "Yes"
is selected and Blue if "No" is selected.

How do I apply it to the one cell ?

Thanks


Babymech

Conditional Format Text - Yes/No
 
Click on the cell, hit "Conditional Formatting" and "New Rule," go to "Format
only cells that contain," enter Specific Text: "Yes", set the format to Blue
text, and hit ok. To see what the rule is, hit conditional formatting again
and "Manage rules" where you'll see what the formatting applies to.

"gibbylinks" wrote:

I've looked at conditional formatting. I used to be able to fly this under
the old versions, but (sorry should have said) I'm using Office 2007 and I
can't see how to apply it to jus tone cell !!

Very confusing

"Rob Wills" wrote:

Hi

Have a look at Conditional formatting

HTH
Rob
===================

"gibbylinks" wrote:

I have a drop down box with YES/NO. I want to turn the text to RED if "Yes"
is selected and Blue if "No" is selected.

How do I apply it to the one cell ?

Thanks



All times are GMT +1. The time now is 02:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com