ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   making a cell a certain font color based on condition (https://www.excelbanter.com/excel-programming/423534-making-cell-certain-font-color-based-condition.html)

robin

making a cell a certain font color based on condition
 
How do i make a macro or piece of code which will change the font color of a
cell if the number is a certain value? For example, if the value of the
number in a certain cell is 1,3,5,7 make the cell font red otherwise make it
black.

RonaldoOneNil

making a cell a certain font color based on condition
 
With your relevant cell selected, click on the toolbar Format and then
conditional formatting. Add your conditions of cell value is equal to 1, 3
etc and click on the format button to change the colour to the one you
require.

"Robin" wrote:

How do i make a macro or piece of code which will change the font color of a
cell if the number is a certain value? For example, if the value of the
number in a certain cell is 1,3,5,7 make the cell font red otherwise make it
black.



All times are GMT +1. The time now is 10:29 PM.

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