ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   need code to run when user changes value in cell (https://www.excelbanter.com/excel-programming/381297-re-need-code-run-when-user-changes-value-cell.html)

Don Guillett

need code to run when user changes value in cell
 
Use a worksheet_change macro with a select case statement within.

--
Don Guillett
SalesAid Software

"Grd" wrote in message
...
Hi everyone,

I need to change the color of a cell based on the value the user types in
the cell.
In this cell B2. If they type ON then it should be blue, BC red, AL
yellow,
NS green and PEI pink. I can't use conditional formatting from the menu
because its only got three conditions I could be using many more.

Also I don't know how code can run automatically when a person changes the
value of a cell in a sheet.

Could anyone help

Thanks

Suzanne





All times are GMT +1. The time now is 12:22 AM.

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