color codes

W

Wazooli

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.
 
W

Wazooli

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.
 
D

David McRitchie

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top