a user defined function I use in excel
Function Hex2RGB(hex As String) As String
Red = Val("&H" & Mid(hex, 1, 2))
Green = Val("&H" & Mid(hex, 3, 2))
Blue = Val("&H" & Mid(hex, 5, 2))
Debug.Print RGB(Red, Green, Blue)
Hex2RGB = RGB(Red, Green, Blue)
End Function
I have a worksheet with a 10 times 10 matrix for which this function would need to be used for every cell in the range. There has to be some way that I don't have to click on each cell and enter =Hex2RGB("value") manually? when I write value I am referring to something like OD62A2....which is the colour than to be transformed in excel format