views:

559

answers:

2

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?

+1  A: 

Maybe you can use this properties: ActiveCell.Interior.ColorIndex - one of 56 preset colors and ActiveCell.Interior.Color - RGB color, used like that:

ActiveCell.Interior.Color = RGB(255,255,255)

Anton
+2  A: 

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).

Garry Shutler