Look at the second argument of the ColorIndex function
--
Kind regards,
Niek Otten
Microsoft MVP - Excel
| Thanks for the code but it seems to only work with cell formatting- not text
| formatting (font color) and I have a lot more of that.
|
| "Niek Otten" wrote:
|
| > Look here:
| >
| > http://xldynamic.com/source/xld.ColourCounter.html
| >
| > --
| > Kind regards,
| >
| > Niek Otten
| > Microsoft MVP - Excel
| >
| > | Is it possible to sort by cell color format or text color format? I tried to
| > | gather info by CELL but it always returns G .
| >
| >
| >
One follow-up. I can only seem to call the function if it's created in a
module within my current workbook. How can I create the function so it's
accessible each time I create a new workbook? I tried posting it in the
personal workbook, but if it's in there I can't call it (get the #NAME? error)