Hi,
I am using excel 2010, and want to get the color integer value.
I tried using
Dim colornumber As Integer
Dim c1 as Range
Set c1 = Range("A1")
colornumber1 = c1.Interior.ColorIndex
But the problem is that "grey" has a "2" value and so does the white space, so it doesn't capture all the colors.
Does anyone know a way to get the values for colors that aren't on the standard palette?
Thanks
I am using excel 2010, and want to get the color integer value.
I tried using
Dim colornumber As Integer
Dim c1 as Range
Set c1 = Range("A1")
colornumber1 = c1.Interior.ColorIndex
But the problem is that "grey" has a "2" value and so does the white space, so it doesn't capture all the colors.
Does anyone know a way to get the values for colors that aren't on the standard palette?
Thanks