Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default need a way to set value based on fill color of a cell

I am looking to set a numerical value of one cell based on the fill color of
another cell. Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default need a way to set value based on fill color of a cell

in a macro?

if the fill color is the actuall background color and not produced by
conditional formatting

select Case Range("A1").Interior.ColorIndex
case xlNone
c = 6
case 3
c = 12
case 5
c=21
End Select
Range("B9").Value = c


--
Regards,
Tom Ogilvy

"banderson" wrote in message
...
I am looking to set a numerical value of one cell based on the fill color

of
another cell. Thanks



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
Can RGB fill color be automated based on 3 cell values? Jaclyn Excel Discussion (Misc queries) 2 February 10th 10 11:17 AM
Reference a cell based on Fill color? Arlen Excel Discussion (Misc queries) 3 July 19th 08 06:04 AM
How do you fill a cell with a color based on IFTHEN formula? ctbowling Excel Worksheet Functions 1 May 9th 06 04:11 PM
How do I change fill color in excel based on data in the cell Jason Southco Excel Worksheet Functions 1 September 29th 05 04:56 PM
I am trying to color fill a cell based on specific criteria jglen Excel Discussion (Misc queries) 1 May 27th 05 05:30 PM


All times are GMT +1. The time now is 11:48 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"