ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How can I make cell A1 a "Y" or "N" depending upon cell A2's font color? Please help. (https://www.excelbanter.com/excel-programming/279794-how-can-i-make-cell-a1-y-n-depending-upon-cell-a2s-font-color-please-help.html)

[email protected]

How can I make cell A1 a "Y" or "N" depending upon cell A2's font color? Please help.
 
How can I make cell A1 a "Y" or "N" depending upon cell A2's font color? Please help.
If anyone can answer this question I'll be extremely grateful. It doesn't matter to me how it is accomplished... macros VB or no VB.
Please feel free to email me at
Thanks again,
Jdove.


Dianne

How can I make cell A1 a "Y" or "N" depending upon cell A2's font color? Please help.
 
How about

Sub CheckColour()

Select Case ActiveSheet.Range("A2").Font.Color
Case vbRed
ActiveSheet.Range("A1").Value = "Y"
Case Else
ActiveSheet.Range("A1").Value = "N"
End Select

End Sub


--
Dianne

In ,
typed:
How can I make cell A1 a "Y" or "N" depending upon cell A2's font
color? Please help.
If anyone can answer this question I'll be extremely grateful. It
doesn't matter to me how it is accomplished... macros VB or no VB.





All times are GMT +1. The time now is 02:49 AM.

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