View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
RonaldoOneNil RonaldoOneNil is offline
external usenet poster
 
Posts: 117
Default 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.