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

Hello,

It's possible by formula to know the color of cell ?

I tried with the formula CELL ("color",cell_reference) but this one just
tell me if the the cell has been formatted with color for negative numbers.

I want to know if the cell has been filled with a specific color and in that
case assign a value to another cell, something like:

if cellXY_color = "yellow" then
cellZV = "OK"

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default To know cell color

A couple of quick questions...

1. How did the cell get to be yellow in the first place? Conditional Format
or Manually selected. If contional format then we can use the logic that
turned it yellow to make the coresponding cell value "Ok"

2. If the colour was selected manually then we need to write code taht
recognizes the colour of cells which is relatively easy code. Did you wnat
the prograam to:
A. at the push of a button run through a spreadsheet that has already been
coloured.
B. define the corresponding cell at the time when a cell is coloured.

3. Define Yellow. There are lots of shades of yellow...

"Ayda" wrote:

Hello,

It's possible by formula to know the color of cell ?

I tried with the formula CELL ("color",cell_reference) but this one just
tell me if the the cell has been formatted with color for negative numbers.

I want to know if the cell has been filled with a specific color and in that
case assign a value to another cell, something like:

if cellXY_color = "yellow" then
cellZV = "OK"

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't format cell color/text color in Office Excel 2003 in fil Tony S Excel Discussion (Misc queries) 1 December 21st 07 01:41 PM
Make text color match cell color with macro? JoeSpareBedroom Excel Discussion (Misc queries) 1 June 26th 07 07:09 PM
Excel: Syntax to change cell color based on color of another cell davew18 Excel Worksheet Functions 1 January 4th 07 01:24 PM
Can't format cell color/text color in Office Excel 2003 in files . albertaman Excel Discussion (Misc queries) 0 February 16th 06 03:56 AM
Browse Forms Controls and change TextBox color based on cell color StefanW Excel Programming 2 November 21st 04 07:06 PM


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