Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to color a selection i have made in vba, is there a command
to do this? Also, I would like to change the font color. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For example, to fill a cell with yellow:
Selection.Interior.ColorIndex = 6 'yellow To assign a red font color: Selection.Font.ColorIndex = 46 'red Also, why not play with the "record macro" function? From the tools menu, choose macro, then record macro. Set the color manually and let Excel produce the macro for you. Then, you can easily find out the correct colorindex for the color you need! Regards, Edwin Tam http://www.vonixx.com "Jon" wrote: I am trying to color a selection i have made in vba, is there a command to do this? Also, I would like to change the font color. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
yer right, im an idiot. thanks
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel 2007 - change fill color from one color to another | Excel Discussion (Misc queries) | |||
Change default fill color | Excel Discussion (Misc queries) | |||
change fill color of a range of cells based on color of a cell? | Excel Programming | |||
in excel, how do i change the fill color? | Excel Worksheet Functions | |||
Auto fill color change | Excel Discussion (Misc queries) |