#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Cell color

Dear colleagues,



What is the easiest solution to the following problem?



Depending of what I choose in the list of the cell in the first column the
cell in the column 2 (same row) changes the color. This should work
independently for all rows.



e.g. Choosing 1 from the list in cell column 1 changes automatically the
cell in the same row in column 2 to red (0 e.g. to green)



I am looking forward for some hints.



Thanks Alex




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Cell color

This depends on how many options you have in column A. If 3 or less then
you could just use inbuilt excel conditional formatting - look it up in
excel help.

If more than three options you could use a sheet change event in VBA but
you would need to give a bit more detail as to what the options are.

Hope this helps
Rowan

Alex Simic wrote:
Dear colleagues,



What is the easiest solution to the following problem?



Depending of what I choose in the list of the cell in the first column the
cell in the column 2 (same row) changes the color. This should work
independently for all rows.



e.g. Choosing 1 from the list in cell column 1 changes automatically the
cell in the same row in column 2 to red (0 e.g. to green)



I am looking forward for some hints.



Thanks Alex




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Cell color

Dear Rowan,

I use only two options.
kind regards,
Alex

"Rowan" wrote in message
...
This depends on how many options you have in column A. If 3 or less then
you could just use inbuilt excel conditional formatting - look it up in
excel help.

If more than three options you could use a sheet change event in VBA but
you would need to give a bit more detail as to what the options are.

Hope this helps
Rowan

Alex Simic wrote:
Dear colleagues,



What is the easiest solution to the following problem?



Depending of what I choose in the list of the cell in the first column

the
cell in the column 2 (same row) changes the color. This should work
independently for all rows.



e.g. Choosing 1 from the list in cell column 1 changes automatically the
cell in the same row in column 2 to red (0 e.g. to green)



I am looking forward for some hints.



Thanks Alex






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Cell color

In that case just use conditional formatting. Select column B so that B1
is the activecell (it should be white and you should see B1 in the Name
Box on the Formula Bar). Then from the menus FormatConditional Formatting.
Select "Formula is" and enter =A1=1. Set the desired formatting by
clicking on the Format button eg Red font.
Then click on Add
Select "Formula is" and enter =A1=0. Set the desired formatting eg Green
font.
click OK

Regards
Rowan


Alex Simic wrote:
Dear Rowan,

I use only two options.
kind regards,
Alex

"Rowan" wrote in message
...

This depends on how many options you have in column A. If 3 or less then
you could just use inbuilt excel conditional formatting - look it up in
excel help.

If more than three options you could use a sheet change event in VBA but
you would need to give a bit more detail as to what the options are.

Hope this helps
Rowan

Alex Simic wrote:

Dear colleagues,



What is the easiest solution to the following problem?



Depending of what I choose in the list of the cell in the first column


the

cell in the column 2 (same row) changes the color. This should work
independently for all rows.



e.g. Choosing 1 from the list in cell column 1 changes automatically the
cell in the same row in column 2 to red (0 e.g. to green)



I am looking forward for some hints.



Thanks Alex







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Cell color

Excellent, Thanks,ALex
"Rowan" wrote in message
...
In that case just use conditional formatting. Select column B so that B1
is the activecell (it should be white and you should see B1 in the Name
Box on the Formula Bar). Then from the menus FormatConditional

Formatting.
Select "Formula is" and enter =A1=1. Set the desired formatting by
clicking on the Format button eg Red font.
Then click on Add
Select "Formula is" and enter =A1=0. Set the desired formatting eg Green
font.
click OK

Regards
Rowan


Alex Simic wrote:
Dear Rowan,

I use only two options.
kind regards,
Alex

"Rowan" wrote in message
...

This depends on how many options you have in column A. If 3 or less then
you could just use inbuilt excel conditional formatting - look it up in
excel help.

If more than three options you could use a sheet change event in VBA but
you would need to give a bit more detail as to what the options are.

Hope this helps
Rowan

Alex Simic wrote:

Dear colleagues,



What is the easiest solution to the following problem?



Depending of what I choose in the list of the cell in the first column


the

cell in the column 2 (same row) changes the color. This should work
independently for all rows.



e.g. Choosing 1 from the list in cell column 1 changes automatically

the
cell in the same row in column 2 to red (0 e.g. to green)



I am looking forward for some hints.



Thanks Alex









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 11:13 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"