PC Review


Reply
Thread Tools Rate Thread

Custom color in Excel 2007?

 
 
xp
Guest
Posts: n/a
 
      20th Jul 2009
I have a function that used to put several custom mixed colors on the color
palette and then I could reference the color index number to get that color:

ActiveWorkbook.Colors(52) = RGB(222, 202, 202)
ActiveWorkbook.Colors(51) = RGB(231, 171, 171)
ActiveWorkbook.Colors(49) = RGB(145, 207, 207)
ActiveWorkbook.Colors(11) = RGB(249, 198, 170)

1) However, I'm now using Office 2007. My function runs without error, but
where did my colors go?

2) I would like to have my custom colors on a custom palette, is this
possible in 2007?

3) Is Excel still limited to storing 56 colors?

Thanks for the assistance!

 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      20th Jul 2009
"xp" <(E-Mail Removed)> wrote in message
news:064216EC-2052-4428-8D63-
>I have a function that used to put several custom mixed colors on the color
> palette and then I could reference the color index number to get that
> color:
>
> ActiveWorkbook.Colors(52) = RGB(222, 202, 202)
> ActiveWorkbook.Colors(51) = RGB(231, 171, 171)
> ActiveWorkbook.Colors(49) = RGB(145, 207, 207)
> ActiveWorkbook.Colors(11) = RGB(249, 198, 170)
>
> 1) However, I'm now using Office 2007. My function runs without error, but
> where did my colors go?


The 56 colour palette is retained in 2007 for compatibility but it does not
have much practical use.

> 2) I would like to have my custom colors on a custom palette, is this
> possible in 2007?


You could create a customized set of theme colours. You can only customize
the ten colours in the top row, each will then be given 5 TintAndShade
colours based of the customized colour. See Page Layout, Colors, Create New
Theme colors.

If you have figured out how to edit xml, you could add your "Recent Colors"
in the palatte, in \styles.xml, <mruColors>.
I don't know if there's a way to add these with pure VBA, same as manually
apply a customized colour and it gets added as a mru colour. If there is
that'd be much easier.

> 3) Is Excel still limited to storing 56 colors?


In theory the number of colours is unlimited.

> Thanks for the assistance!



Regards,
Peter T


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 - Using a Custom Function to Set Row Color Don Microsoft Excel Programming 4 23rd Feb 2009 02:55 AM
Powerpoint / Excel: custom pp RGB color doesn't match identical Excelcustom RGB color mikewillnot Microsoft Powerpoint 1 26th Feb 2008 05:22 PM
Powerpoint / Excel: custom pp RGB color doesn't match identical Excelcustom RGB color mikewillnot Microsoft Excel Charting 1 26th Feb 2008 05:22 PM
excel 2007 - change fill color from one color to another okiedokiedoo Microsoft Excel Misc 1 30th Dec 2007 10:25 PM
custom color control for powerpoint graphs / excel color palattes =?Utf-8?B?Z3V5?= Microsoft Powerpoint 2 4th Apr 2007 01:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:51 AM.