Return background color of selected cell

calendar_today Asked Feb 6, 2009
thumb_up 12 upvotes
history Updated April 16, 2026

Question posted 2009 ยท +11 upvotes

I have a spreadsheet which cells in are colored meaningfully.

Does any body know how i can return the background color value of a current cell in Excel sheet?

Accepted answer +12 upvotes

You can use Cell.Interior.Color, I’ve used it to count the number of cells in a range that have a given background color (ie. matching my legend).

Top excel-vba Q&A (6)

+12 upvotes ranks this answer #45 out of 136 excel-vba solutions on this site .