Changing text color

  • Thread starter Thread starter Shannon
  • Start date Start date
S

Shannon

If the syntax (.Pattern = xlSolid) highlights a cell to
the color you select. What syntax changes the text color?
 
It is in an If statement, i.e.
(If Cells(i, 9).Value < 1 And Cells(i, 9).Value <> 0 Then
With Cells(i, 9).Interior
.Pattern = xlSolid
.ColorIndex = 3
.PatternColorIndex = xlAutomatic
End With
End If)

Instead of highlighting the box in the .Pattern = xlSolid
I would like to change the text color to red.

Shannon
 
If Cells(i, 9).Value < 1 And Cells(i, 9).Value <> 0 Then
With Cells(i, 9).Font
.ColorIndex = 3
End With
End If
 
Thank you.
Shannon
-----Original Message-----
If Cells(i, 9).Value < 1 And Cells(i, 9).Value <> 0 Then
With Cells(i, 9).Font
.ColorIndex = 3
End With
End If

--
Regards,
Tom Ogilvy




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top