TimHudspith
asked on
Colour Excel ranges using HEX colours?
I want to use a wider range of colours on my Excel spreadsheet than is available from the standard palette.
I've found a website devoted to colour combinations for graphic designers - which is ideal - but all the colours are expressed as HEX:
99CCFF - a light blue
FFCC00 - dirty yellow
99CC99 - grey/green
Using VBA, how can I set the range.interior.color property to these colours?
I've found a website devoted to colour combinations for graphic designers - which is ideal - but all the colours are expressed as HEX:
99CCFF - a light blue
FFCC00 - dirty yellow
99CC99 - grey/green
Using VBA, how can I set the range.interior.color property to these colours?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It seems that for interior you are limited to 56 colours, no matter what you do. The only way round that is to upgrade to XL2007.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Essentially, Excel will give you the closest match from the colour palette to the colour you are trying to apply. You can change the colours on the palette to match your RGB values, but you can still only have 56 at a time.
HTH
Rory
HTH
Rory
Rory's code snipet is converting the HEX for you.
ASKER
dirknibleck - how do I convert HEX to decimal?