#1   Report Post  
Wazooli
 
Posts: n/a
Default color codes

After seeing many posts regarding extracting the color value of a cell, I am
wondering where one can get a listing of default colors with their respective
codes.
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Wazooli

Run this macro on a empty sheet


Sub ListColors()
Dim a As Long
For a = 1 To 56
Cells(a, 1).Interior.ColorIndex = a
Cells(a, 2).Value = a
Next a
End Sub


More info you can find here
http://www.mvps.org/dmcritchie/excel/colors.htm



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Wazooli" wrote in message
...
After seeing many posts regarding extracting the color value of a cell, I
am
wondering where one can get a listing of default colors with their
respective
codes.



  #3   Report Post  
Wazooli
 
Posts: n/a
Default

Well, i did it by brute force, which works suprisingly well, just
inefficiently so. Anyway, after following another thread about extracting
cell color using a function getcolor(), I was wondering if there was a way to
assign cell color with a function. please be gentle - I have absolutely no
VBA skills.

"Ron de Bruin" wrote:

Hi Wazooli

Run this macro on a empty sheet


Sub ListColors()
Dim a As Long
For a = 1 To 56
Cells(a, 1).Interior.ColorIndex = a
Cells(a, 2).Value = a
Next a
End Sub


More info you can find here
http://www.mvps.org/dmcritchie/excel/colors.htm



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Wazooli" wrote in message
...
After seeing many posts regarding extracting the color value of a cell, I
am
wondering where one can get a listing of default colors with their
respective
codes.




  #4   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Wazooli

No, not with a function ( only with code )
Or you can use CF, see Debra's site for examples
http://www.contextures.com/xlCondFormat01.html

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Wazooli" wrote in message
...
Well, i did it by brute force, which works suprisingly well, just
inefficiently so. Anyway, after following another thread about extracting
cell color using a function getcolor(), I was wondering if there was a way
to
assign cell color with a function. please be gentle - I have absolutely
no
VBA skills.

"Ron de Bruin" wrote:

Hi Wazooli

Run this macro on a empty sheet


Sub ListColors()
Dim a As Long
For a = 1 To 56
Cells(a, 1).Interior.ColorIndex = a
Cells(a, 2).Value = a
Next a
End Sub


More info you can find here
http://www.mvps.org/dmcritchie/excel/colors.htm



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Wazooli" wrote in message
...
After seeing many posts regarding extracting the color value of a cell,
I
am
wondering where one can get a listing of default colors with their
respective
codes.






  #5   Report Post  
David McRitchie
 
Posts: n/a
Default

Hi Wazooli,
Chip Pearson has several functions for dealing with Colors
obtaining the value i.e. CellColorIndex
http://www.cpearson.com/excel/colors.htm

To change the color you have to use a SUB (subroutine).
http://www.mvps.org/dmcritchie/excel/colors.htm

But I think you have been working with code from your question
and interaction, so you really should have started in the programming
newsgroup instead of worksheet.functions, but same people
there as here so stick with this group until you get your answers
if not already solved.

The color index colors are listed on my page above (2nd reference),
but if the web is not handy for you some other time you will find
a list of colorindex values in the VBE help (not the Excel help).
I like my page better and it is easier for me to refer to.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Ron de Bruin" wrote in message ...
Hi Wazooli

No, not with a function ( only with code )
Or you can use CF, see Debra's site for examples
http://www.contextures.com/xlCondFormat01.html

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Wazooli" wrote in message
...
Well, i did it by brute force, which works suprisingly well, just
inefficiently so. Anyway, after following another thread about extracting
cell color using a function getcolor(), I was wondering if there was a way
to
assign cell color with a function. please be gentle - I have absolutely
no
VBA skills.

"Ron de Bruin" wrote:

Hi Wazooli

Run this macro on a empty sheet


Sub ListColors()
Dim a As Long
For a = 1 To 56
Cells(a, 1).Interior.ColorIndex = a
Cells(a, 2).Value = a
Next a
End Sub


More info you can find here
http://www.mvps.org/dmcritchie/excel/colors.htm



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Wazooli" wrote in message
...
After seeing many posts regarding extracting the color value of a cell,
I
am
wondering where one can get a listing of default colors with their
respective
codes.







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



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

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

About Us

"It's about Microsoft Excel"