Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Reading RGB background color from cell

From a macro, how do I read and set the background color of a cell? I am
not interested in its color index, but the RGB color number.

Thanks, Don <www.donwiss.com (e-mail link at home page bottom).
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Reading RGB background color from cell

Use the color property where you would use colorindex

--
Regards,
Tom Ogilvy

"Don Wiss" wrote in message
...
From a macro, how do I read and set the background color of a cell? I am
not interested in its color index, but the RGB color number.

Thanks, Don <www.donwiss.com (e-mail link at home page bottom).



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default Reading RGB background color from cell

Hi Don,
But you will get that color only if have that exact color in your color
palette, for anything else when you try to set the value Excel will
pick the closest it can find in your 56 color palette.
http://www.mvps.org/dmcritchie/excel/colors.htm

Which I expects brings you back to what you are trying to avoid.


"Tom Ogilvy" wrote in message ...
Use the color property where you would use colorindex

--
Regards,
Tom Ogilvy

"Don Wiss" wrote in message
...
From a macro, how do I read and set the background color of a cell? I am
not interested in its color index, but the RGB color number.

Thanks, Don <www.donwiss.com (e-mail link at home page bottom).





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Reading RGB background color from cell

On Fri, 5 Aug 2005, David McRitchie wrote:

But you will get that color only if have that exact color in your color
palette, for anything else when you try to set the value Excel will
pick the closest it can find in your 56 color palette.
http://www.mvps.org/dmcritchie/excel/colors.htm

Which I expects brings you back to what you are trying to avoid.


Yes. I was desiring a lighter color purple background. Our European parent
has this corporate identity thing. I was with a fellow programmer this
afternoon and I was telling him how I deleted the toolbar (see prior
thread), but left the menu. I happened to select the menu option that had
something to do with translate. In a flash it had changed the font on every
sheet, on the buttons, and it had changed all the colors. Which as you note
means they simply completely changed the color palette. (Fortunately it was
not the real system and I was able to close the now trashed workbook!)

Their colors tended towards pastels. Including a light purple. I never use
a purple background. Too dark for me. But I was thinking maybe the light
one would be useful.

Looking at your web page it appears that what I should be doing is to
change one of the palette colors. It's getting late tonight. I'll try to
study it later this weekend.

Thanks! Don <www.donwiss.com (e-mail link at home page bottom).
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
cell background color and cell text color Jeff Klein Excel Worksheet Functions 1 November 1st 07 08:59 PM
How do I- IF the cell background is RED in color then contain 1 sunshine19992 Excel Worksheet Functions 3 May 23rd 07 09:26 PM
Default Border, Font Color, and Cell Background Color Elijah Excel Discussion (Misc queries) 1 October 28th 05 04:10 PM
Cell Background Color Bob Excel Programming 2 February 1st 04 03:56 PM
Set background color of a cell in VBA Cindy Excel Programming 9 January 16th 04 09:05 PM


All times are GMT +1. The time now is 06:53 AM.

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

About Us

"It's about Microsoft Excel"