I'd like to use a cell's background color in an HTML file. Thus, I need the HEX code of the color. I use the following code to get the HEX code of the background color.
MsgBox (ActiveCell.Interior.Color)
MsgBox Right("000000" & Hex(ActiveCell.Interior.Color), 6)
The fist line returned 2303331, the second 232563. I tried on two different web sites to convert 2303331 to HEX number. Both gave #232563. I also tried the reverse conversion, converting #232563 to decimal, and got 2303331. So, the numbers are OK.
I then entered #232563 on two different web sites to see if the color matches that on my Excel sheet. No, it doesn't match. #232563 is a blue color while my color is brown, similar to #450000.
I'm lost as to how to get the HEX code of the cell background.
