I have found VBA code from another thread that returns a value for a cell colour. But it will only update when F9 is pressed for a cell colour change
In B1 =GetColor(A1) when colour in A1 changes B1 output stays the same
CODE:
Function GetColor(r As Range) As Integer
Application.Volatile
GetColor = r.Interior.ColorIndex
End Function
Is it possible to have this update automatically?
In B1 =GetColor(A1) when colour in A1 changes B1 output stays the same
CODE:
Function GetColor(r As Range) As Integer
Application.Volatile
GetColor = r.Interior.ColorIndex
End Function
Is it possible to have this update automatically?