Forum Discussion
Ronald_Hoerner
Jan 28, 2023Copper Contributor
cell format info in formulas
I wrote a small routine to count the number of cell in a range (calendar_ronald) that match the color of a cell (cell_color). Sub CountCellsByColor() Dim calendar_ronald As Range Dim cell_colo...
- Jan 29, 2023No. Function can't work with color.
Harun24HR
Jan 28, 2023Silver Contributor
Ronald_Hoerner To get count result in cell replace below line-
MsgBox "The number of cells in the given area with the specified color is: " & color_countWith
Range("F1") = color_countRonald_Hoerner
Jan 29, 2023Copper Contributor
- Harun24HRJan 29, 2023Silver ContributorNo. Function can't work with color.