ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   I need a macro that will change the color of a cell #1 when a Y o. (https://www.excelbanter.com/excel-programming/309222-re-i-need-macro-will-change-color-cell-1-when-y-o.html)

JulieD

I need a macro that will change the color of a cell #1 when a Y o.
 
Hi David

this can (easily) be achieved using conditional formatting
select cell 1
choose
format / conditional formatting
choose formula is
type
=A1="Y"
in the box where A1 is the cell reference of your cell 2
click on the format button - set the format you want, click OK
then click on Add
choose
formula is
type
=A1="N"
click on the format button - set the format you want, click OK
click on OK again

Cheers
JulieD


"David Campbell" <David wrote in message
...
I need a Macro in Excel that will change the color of cell #1 when a Y or

N
is entered into cell #2.





All times are GMT +1. The time now is 11:35 AM.

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