Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,670
Default Macro for cell colors?

Hello all,

I don't know if this can be done or how it would be done, so I am asking the
experts. Here is my questions.
I have a row with targets and 4 rows of with test results. If the test is
out of tolorance the cell will be yellow. If the test is out by alot (6%)
then the cell turns red. If it is a good test the cell is white. I figured
this out in conditional formatting. Here is my main question.....
Is there a way to have a macro determine what color the cell is and tell me
what status we are at. For instance, if the cell is white "continue", if the
cell is yellow "continue", if cell is red "Stop".

example:
A B C D
Targets~~ 5 6 7 8
1 5 5 7 4~~this
would be red we must

"stop". Columns A,B,C

are white
2 5 5 7 5~~ this
would be yellow "continue"

with testing. ABC are white
3 5 5 7 5~~ this
would be yellow stop

because you have 2 yellows

in a row
4 5 6 7 8~~
everything is white so we can

continue with testing

Eric
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Macro for cell colors?

On Apr 10, 8:23*am, Eric wrote:
Hello all,

I don't know if this can be done or how it would be done, so I am asking the
experts. *Here is my questions.
I have a row with targets and 4 rows of with test results. *If the test is
out of tolorance the cell will be yellow. *If the test is out by alot (6%)
then the cell turns red. *If it is a good test the cell is white. *I figured
this out in conditional formatting. *Here is my main question.....
Is there a way to have a macro determine what color the cell is and tell me
what status we are at. *For instance, if the cell is white "continue", if the
cell is yellow "continue", if cell is red "Stop".

example:
* * * * * * * * * * * *A * * * * * B * * * * * * C * * * * * * D
Targets~~ * * 5 * * * * * 6 * * * * * * *7 * * * * * * 8
1 * * * * * * * * * * 5 * * * * * 5 * * * * * * *7 * * * * * * 4~~this
would be red we must

"stop". *Columns A,B,C

are white
2 * * * * * * * * * * 5 * * * * * 5 * * * * * * *7 * * * * * * 5~~ this
would be yellow "continue"

with testing. *ABC are white
3 * * * * * * * * * * 5 * * * * * 5 * * * * * * *7 * * * * * * 5~~ this
would be yellow stop

because you have 2 yellows

in a row
4 * * * * * * * * * *5 * * * * * 6 * * * * * * *7 * * * * * * 8~~ *
everything is white so we can

continue with testing

Eric


I've done the same ... but without conditional formatting, just with
highlighting via code. If you do it that way, you have a much easier
time adding "status" etc.

Cheers, HTH

Chris
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Macro for cell colors?

Chip Pearson has some code that might lead you in the right direction...

http://www.cpearson.com/excel/colors.aspx


Mark Ivey

"Eric" wrote in message
...
Hello all,

I don't know if this can be done or how it would be done, so I am asking
the
experts. Here is my questions.
I have a row with targets and 4 rows of with test results. If the test is
out of tolorance the cell will be yellow. If the test is out by alot (6%)
then the cell turns red. If it is a good test the cell is white. I
figured
this out in conditional formatting. Here is my main question.....
Is there a way to have a macro determine what color the cell is and tell
me
what status we are at. For instance, if the cell is white "continue", if
the
cell is yellow "continue", if cell is red "Stop".

example:
A B C D
Targets~~ 5 6 7 8
1 5 5 7 4~~this
would be red we must

"stop". Columns A,B,C

are white
2 5 5 7 5~~ this
would be yellow "continue"

with testing. ABC are white
3 5 5 7 5~~ this
would be yellow stop

because you have 2 yellows

in a row
4 5 6 7 8~~
everything is white so we can

continue with testing

Eric


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
What do I need to add to my macro to make the cell colors change Bojames Excel Discussion (Misc queries) 4 July 22nd 08 03:52 PM
Don't print cell colors, Print font colors. klhetrick Excel Discussion (Misc queries) 4 February 13th 08 05:35 PM
Can't format font colors or cell fill-in colors canoeron Excel Discussion (Misc queries) 3 August 22nd 05 11:46 PM
Colors overridden in a Macro Sharon[_9_] Excel Programming 2 July 19th 05 03:58 PM
macro used to change colors Brian in FT W. Excel Worksheet Functions 12 June 7th 05 06:30 PM


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