Color Property

jonpyne

New Member
Joined
Sep 19, 2005
Messages
13
Hi, there
Can anyone explain the point of the Color property? ColorIndex allows you to assign a colour from the palette. Color allows you to assign an RGB value. That's what it says on the tin. That is the code in a myriad of examples all over the internet: MyCell.Interior.Color = RGB(130, 195, 130). BUT IT DOES NOT DO THAT, does it! It snaps to the closest equivalent it can find in the palette. So what is the point?
My scenario was simple. I wanted a chart to be a certain colour, whatever the user did with the palette. Color looked to be the answer. Is there actually a way to do this?
Thanks for looking.
Jon
MS Excel 2003.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Thanks, Andrew. I guess that's that, then.
I'm still baffled why they have the read/write property, though. It is as though they never got round to finishing it. You can assign it a value, but it will not be used.
 
Upvote 0
it will be used, if it can be (and in 2007 and later it can be) but it also means you can get whatever colour is closest to, say, red without having to know the colorindex for whatever colour palette is in use.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,348
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top