Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Generate RGB combinations from Rng.Interior.ColorIndex vlaue

I need a vba code which geneartes RGB combination from
Rng.Interior.ColorIndex value. The reason why i want to do this is
because Interior.ColorIndex value differs for 2003 and 2007 .

I am getting the colour from excel file by Rng.Interior.ColorIndex
value and then applying it to powerpoint charts . but when i try to
do it for 2007 version powerpoint charts it is not applying the
specified colours .



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Generate RGB combinations from Rng.Interior.ColorIndex vlaue

Interior.ColorIndex doesn't differ between 2003 and 2007, but in 2007 the
actual colour of a cell may not be the same as the palette colour associated
with the colorindex that's applied to the cell format. That's because,
unlike earlier versions which can only be formatted with a palette colour,
2007 cells can be formatted with any colour.

Try this instead -

lngClr = Rng.Interior.Color

Have you looked into using Themes for your 2007 app's

Regards,
Peter T


"vicky" wrote in message
...
I need a vba code which geneartes RGB combination from
Rng.Interior.ColorIndex value. The reason why i want to do this is
because Interior.ColorIndex value differs for 2003 and 2007 .

I am getting the colour from excel file by Rng.Interior.ColorIndex
value and then applying it to powerpoint charts . but when i try to
do it for 2007 version powerpoint charts it is not applying the
specified colours .




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
more on interior.colorindex issue bst Excel Programming 4 July 2nd 08 05:43 PM
interior.colorindex does not work? bst Excel Programming 11 June 28th 08 02:05 PM
problem with interior.colorindex Peter Rooney Excel Programming 7 January 20th 06 12:31 PM
Use of Interior.ColorIndex liquidhot Excel Programming 4 June 27th 05 07:22 PM
Testing for Interior.ColorIndex JeffBo Excel Programming 7 May 17th 04 09:41 PM


All times are GMT +1. The time now is 12:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"