Backcolor value in hex

P

Phil Hellmuth

I want to get the hex value of a cell's backcolor, so I can replicate
the same color in Access. In VBA, I try to derive this by using
Hex(sheet.range(cell).interior.color). I get a hex value, but when I
try it in Access, it displays a different color. Am I grabbing the
correct property from the cell in Excel? Or, is there another way I can
derive the hex value?

Thanks in advance.
 
S

Shane Devenshire

What version of Excel/Access are you using 2003 or 2007?

I'm believe you can set the color using HSL or RGB scales, which apply to
both Excel and Access (at least in 2003).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top