Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default REFERENCING cell reference

I have formulas that refer to the values of 4 total cells c27-c30...
Hence, each cell can only take on 4 values... How, besides the value,
can it take upon the cell background as well???

(c27-c28 is green, c29-c30 is red)... I have tried:

a.) The GET.CELL function.
b.) and vba code.. but can't seem to get anyone of these right!!!!

PLEASE I NEED YOUR HELP!!!!

Any ideas? (conditional formatting doesn't work, because the values in
these cells are actually symbols , c27 and c28 are an up and down arrow
respectively in green, while c29, anc c30 are an up and down arrow with
the background in red. If you try to do conditional formatting... it
won't work because a.) you have 4 conditions, and b, the values are
actually two, up and down arrow... Any help???? )

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default REFERENCING cell reference

You can get the background color of a cell using the Interior.ColorIndex
Property

for each cell in Range("C27:C30")
sColor = "Neigher Red or Green"
if cell.Interior.ColorIndex = 3 then sColor = "Red"
if cell.Interior.ColorIndex = 4 then sColor = "Green"
msgbox cell.Address & " color is " & sColor
Next

--
Regards,
Tom Ogilvy


wrote in message
oups.com...
I have formulas that refer to the values of 4 total cells c27-c30...
Hence, each cell can only take on 4 values... How, besides the value,
can it take upon the cell background as well???

(c27-c28 is green, c29-c30 is red)... I have tried:

a.) The GET.CELL function.
b.) and vba code.. but can't seem to get anyone of these right!!!!

PLEASE I NEED YOUR HELP!!!!

Any ideas? (conditional formatting doesn't work, because the values in
these cells are actually symbols , c27 and c28 are an up and down arrow
respectively in green, while c29, anc c30 are an up and down arrow with
the background in red. If you try to do conditional formatting... it
won't work because a.) you have 4 conditions, and b, the values are
actually two, up and down arrow... Any help???? )



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
Referencing relative to a formula reference Csaba Gabor Excel Worksheet Functions 3 April 26th 10 01:13 PM
Changing sheet reference to cell reference TeeJay Excel Worksheet Functions 3 October 19th 07 11:50 AM
absolute cell reference A spreadsheet cell reference that does no help Excel Discussion (Misc queries) 1 January 18th 06 06:56 PM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. [email protected] Excel Worksheet Functions 2 December 11th 04 12:05 AM
Problem with =sum(offset(cell reference,w,x,y,z). I want cell reference to be variable [email protected] Excel Worksheet Functions 2 December 11th 04 12:00 AM


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