Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I get RGB color values?
mycolor = ActiveCell.Offset(0, 1).Interior.Color
ActiveCell.Value = mycolor The above code gives me the integer color values (which I don't understand) for the cell to the right of the active cell and the following code gives me the color palette numbers: mycolor = ActiveCell.Offset(0, 1).Interior.ColorIndex ActiveCell.Value = mycolor How can I get the RGB color values Any info gratefully appreciated Philip |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I get RGB color values?
Philip,
See www.cpearson.com/excel/colors.htm for VBA code to break the Long color value in to its red, green, and blue components. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Philip Reece-Heal" wrote in message . .. mycolor = ActiveCell.Offset(0, 1).Interior.Color ActiveCell.Value = mycolor The above code gives me the integer color values (which I don't understand) for the cell to the right of the active cell and the following code gives me the color palette numbers: mycolor = ActiveCell.Offset(0, 1).Interior.ColorIndex ActiveCell.Value = mycolor How can I get the RGB color values Any info gratefully appreciated Philip |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I get RGB color values?
Phillip,
Just about everything you wanted to know about colors: http://www.mvps.org/dmcritchie/excel/colors.htm John Philip Reece-Heal wrote: mycolor = ActiveCell.Offset(0, 1).Interior.Color ActiveCell.Value = mycolor The above code gives me the integer color values (which I don't understand) for the cell to the right of the active cell and the following code gives me the color palette numbers: mycolor = ActiveCell.Offset(0, 1).Interior.ColorIndex ActiveCell.Value = mycolor How can I get the RGB color values Any info gratefully appreciated Philip |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I get RGB color values?
Phillip,
Well, almost everything. Forgot to mention Chip's site too John John Wilson wrote: Phillip, Just about everything you wanted to know about colors: http://www.mvps.org/dmcritchie/excel/colors.htm John Philip Reece-Heal wrote: mycolor = ActiveCell.Offset(0, 1).Interior.Color ActiveCell.Value = mycolor The above code gives me the integer color values (which I don't understand) for the cell to the right of the active cell and the following code gives me the color palette numbers: mycolor = ActiveCell.Offset(0, 1).Interior.ColorIndex ActiveCell.Value = mycolor How can I get the RGB color values Any info gratefully appreciated Philip |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I get RGB color values?
Many thanks John Plenty of stuff to get me to where I was wanting to go All the best Philip *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I get RGB color values?
Many thanks Chip Plenty of stuff to get me to where I was wanting to go and some way further All the best Philip *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I sum up values only in cells that are color filled? | Excel Worksheet Functions | |||
Find Values in Range Then Color | Excel Discussion (Misc queries) | |||
Sum function when the values in an xls are color coded | Excel Worksheet Functions | |||
Category color changes when changing values. | Charts and Charting in Excel | |||
Neg Values in Chart with Diff Color? | Excel Discussion (Misc queries) |