I have a worksheet that has cells coloured via conditional formatting. I need to count the various cells by colour - after much searching & experimenting I've got the two functions below to work with the following formula :-
=CountCellsByColor(range, color code)
Problem is that I need to do this in many different workbooks. All my other macros are housed in a central workbook so that I don't have to do much more than open the "storage" workbook, the file to be worked on & then run the appropriate macro.
My question is how do I use the two functions below via that central workbook ??
What changes do I need to make to the functions (if any) & how would I "execute" the formula via the macro or would it be as simple as Range("A1").formula="=CountCellsByColor(range, color code)" ??
Many thanks
Bookmarks