Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA colorscale and color #
hi,
i have a colorscale (conditional formating ) in range A1:A20 and I'm trying to get color number for each cell. In normal case a = Range("a1").Interior.Color b= Range("a2").Interior.Color etc. works fine. But when colors of cells are from conditional formating i dont know how to get color number. how to do that? Mistus |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA colorscale and color #
Sadly getting the conditional format colour is not the same as returning the
colorindex. have a look he- http://www.cpearson.com/excel/CFColors.htm Mike "mistus" wrote: hi, i have a colorscale (conditional formating ) in range A1:A20 and I'm trying to get color number for each cell. In normal case a = Range("a1").Interior.Color b= Range("a2").Interior.Color etc. works fine. But when colors of cells are from conditional formating i dont know how to get color number. how to do that? Mistus |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA colorscale and color #
http://www.cpearson.com/excel/CFColors.htm
it did't solve my problem :(. "Function ColorOfCF" is very useful but it works only for stadnard formating (the same as a = Range("a1").Interior.Color). maybe I sholud write that I use excel 2007 M |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA colorscale and color #
It's not simple but see
http://www.xldynamic.com/source/xld.CFConditions.html -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "mistus" wrote in message oups.com... hi, i have a colorscale (conditional formating ) in range A1:A20 and I'm trying to get color number for each cell. In normal case a = Range("a1").Interior.Color b= Range("a2").Interior.Color etc. works fine. But when colors of cells are from conditional formating i dont know how to get color number. how to do that? Mistus |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA colorscale and color #
See my post, that site covers formulae as well.
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Marcin" wrote in message ... http://www.cpearson.com/excel/CFColors.htm it did't solve my problem :(. "Function ColorOfCF" is very useful but it works only for stadnard formating (the same as a = Range("a1").Interior.Color). maybe I sholud write that I use excel 2007 M |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA colorscale and color #
For what it's worth, if my VBA code needs to worry about the CF
coloring in a cell, I just make the same tests in VBA as I do in the CF and go from there. Mark Lincoln On Jul 19, 8:47 am, mistus wrote: hi, i have a colorscale (conditional formating ) in range A1:A20 and I'm trying to get color number for each cell. In normal case a = Range("a1").Interior.Color b= Range("a2").Interior.Color etc. works fine. But when colors of cells are from conditional formating i dont know how to get color number. how to do that? Mistus |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Powerpoint / Excel: custom pp RGB color doesn't match identical Excelcustom RGB color | Charts and Charting in Excel | |||
Can't format cell color/text color in Office Excel 2003 in files . | Excel Discussion (Misc queries) | |||
My fill color and font color do not work in Excel Std Edition 2003 | Excel Discussion (Misc queries) | |||
Excel 2003 will not display color fonts or color fill cells | Excel Worksheet Functions | |||
Browse Forms Controls and change TextBox color based on cell color | Excel Programming |