Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Font color in the cells

Hi,
How about the way to change the color within VBA?

Bst Rgds,
HuaMin
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Font color in the cells

Range("A1:A10").Font.ColorIndex = 3

--
Jacob


"HuaMin" wrote:

Hi,
How about the way to change the color within VBA?

Bst Rgds,
HuaMin

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Font color in the cells

Many thanks. I've tried the values 3, 4 for the index. But I don't see any
difference in the cell. How do we know which index is for which color?

"Jacob Skaria" wrote:

Range("A1:A10").Font.ColorIndex = 3

--
Jacob


"HuaMin" wrote:

Hi,
How about the way to change the color within VBA?

Bst Rgds,
HuaMin

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Font color in the cells

Check out

http://www.mvps.org/dmcritchie/excel/colors.htm


ActiveSheet.Range("A1:A10").Font.ColorIndex = 3



--
Jacob


"HuaMin" wrote:

Many thanks. I've tried the values 3, 4 for the index. But I don't see any
difference in the cell. How do we know which index is for which color?

"Jacob Skaria" wrote:

Range("A1:A10").Font.ColorIndex = 3

--
Jacob


"HuaMin" wrote:

Hi,
How about the way to change the color within VBA?

Bst Rgds,
HuaMin

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
I can't change font color in certian cells. bcitygirl Excel Discussion (Misc queries) 2 April 5th 23 01:15 PM
Counting cells by font color Cassie Excel Discussion (Misc queries) 2 November 23rd 09 05:57 PM
Changing font color of protected cells programatically Nigel Excel Discussion (Misc queries) 6 September 13th 08 12:32 PM
Cells won't change font color or show hi-lighted cells in document ROBIN Excel Discussion (Misc queries) 1 March 27th 08 09:39 PM
keeping font color when linking cells Jamie Excel Worksheet Functions 1 May 17th 07 10:26 PM


All times are GMT +1. The time now is 09:39 AM.

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"