Forum Discussion
Ronald_Hoerner
Jan 29, 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 29, 2023Bronze 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_count
With
Range("F1") = color_count
- Ronald_HoernerJan 29, 2023Copper Contributor
- Harun24HRJan 29, 2023Bronze ContributorNo. Function can't work with color.