I would use .Font.Color to drop the RGB values, but you can change it to ColorIndex if you want.
You can adapt this strategy:
Sub CellColors2CSV() Dim j&, k&, c$, r As Range Set r = ActiveSheet.Cells(1, 1) Do j = Len(r) k = InStr(k + 1, r, ",") If k Then j = k - 1 c = c & "," & r.Characters(j, 1).Font.Color Loop Until k = 0 c = Mid$(c, 2) MsgBox c End Sub
Excel hero
source share