Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - setting color of cell from RGB code

Status
Not open for further replies.

dqrose

Technical User
Mar 17, 2006
24
GB
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.

Cheers
 
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.




Member- AAAA Association Against Acronym Abusers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top