Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I copied some VBE code from
http://xldynamic.com/source/sld.ColourCounter.html and pasted it into the VBA editor in my Excel spreadsheet. Then I used '=ColorIndex(cell)='color index number' to find out what index number my color is. Then I used '=SumProduct(--(COLORINDEX(cell range)='color index number')) to add up the cells that have that color. This works great. However, when I save the Excel document and then need to go back to it, I get a #name? error. Why is this happening. I really would like to be able to use this code, but can't figure out why it doesn't work correctly. Thanks, Pam Mahan |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Pam
Press the F9 key to force calculation and it should work. Excel does not recognise UDFs imediately unless they are installed in an AddIn. Peter "Counting Cells With Fill Color" wrote: I copied some VBE code from http://xldynamic.com/source/sld.ColourCounter.html and pasted it into the VBA editor in my Excel spreadsheet. Then I used '=ColorIndex(cell)='color index number' to find out what index number my color is. Then I used '=SumProduct(--(COLORINDEX(cell range)='color index number')) to add up the cells that have that color. This works great. However, when I save the Excel document and then need to go back to it, I get a #name? error. Why is this happening. I really would like to be able to use this code, but can't figure out why it doesn't work correctly. Thanks, Pam Mahan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is there a way to count cells in a range based on fill color? | Excel Worksheet Functions | |||
How do I sort or count cells by fill color? | Excel Discussion (Misc queries) | |||
HOW TO FORMATE CELLS TO COUNT CELLS WITH A FILL COLOR? | New Users to Excel | |||
Formula to count the cells in a range that have a fill color. | Excel Discussion (Misc queries) | |||
Formula to count the cells in a range that have a fill color. | Excel Discussion (Misc queries) |