Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Changing text color

If the syntax (.Pattern = xlSolid) highlights a cell to
the color you select. What syntax changes the text color?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Changing text color

for a range
Range("A1").Font.ColorIndex = 3

--
Regards,
Tom Ogilvy

"Shannon" wrote in message
...
If the syntax (.Pattern = xlSolid) highlights a cell to
the color you select. What syntax changes the text color?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Changing 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


-----Original Message-----
for a range
Range("A1").Font.ColorIndex = 3

--
Regards,
Tom Ogilvy

"Shannon" wrote in

message
...
If the syntax (.Pattern = xlSolid) highlights a cell to
the color you select. What syntax changes the text

color?


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Changing text color

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

"Shannon" wrote in message
...
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


-----Original Message-----
for a range
Range("A1").Font.ColorIndex = 3

--
Regards,
Tom Ogilvy

"Shannon" wrote in

message
...
If the syntax (.Pattern = xlSolid) highlights a cell to
the color you select. What syntax changes the text

color?


.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Changing text color

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

"Shannon" wrote in

message
...
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


-----Original Message-----
for a range
Range("A1").Font.ColorIndex = 3

--
Regards,
Tom Ogilvy

"Shannon" wrote

in
message
...
If the syntax (.Pattern = xlSolid) highlights a cell

to
the color you select. What syntax changes the text

color?


.



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing text color based upon If KenM Excel Discussion (Misc queries) 5 November 24th 08 08:56 PM
dynamically changing text color Dave Excel Worksheet Functions 4 May 31st 07 06:38 PM
Changing several cells text color lauras03 Excel Discussion (Misc queries) 1 March 12th 07 11:03 PM
How to do if then statements changing color text? next level Excel Discussion (Misc queries) 2 April 4th 06 06:15 PM
Changing Text Color After Change Todd Excel Programming 5 April 2nd 04 10:14 PM


All times are GMT +1. The time now is 03:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"