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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why does changing theme in Excel 2007 change interior.colorindex?

Status
Not open for further replies.

kiboro

Programmer
Aug 15, 2007
1
GB
I'm hoping that someone can suggest a way round this...

I have quite a large codebase which uses cell colours as meta-information about the cell for processing purposes. This worked fine in Excel 97/2000/2003 but the new theme engine in Excel breaks it.

I can set cell colours in VBA fine, but the users no longer have the standard colour chart to select from. Fine I thought, create a custom theme for them so that the colours match my internal colours.

Sadly this doesn't work as changing themes changes all the interior.colorindex numbers, in some cases exchanging their meanings to my code.

Can anyone think of a way round this please? Changing theme should be a display layer function, not playing with internal values. thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top