In Excel, is there a way to set the background color of a cell from its RGB color code? For example, if cell A1 contains the hex value FF0000 (pure red) then I want the background color of that cell to be pure red.
Excel can only display 56 colors at a time that are in the palette (tools; options; color). If you use VBA for an RGB or a HEX value Excel will pick the closest color within the existing palette.
The palette can be modified for any particular workbook - under tools; options; color.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.