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

I have a spreadsheet that shows the current situation of
25 sales people in an organization, and then finds the
average of certain information. I then show how the
company's situation can be improved by helping salespeople
with below average numbers come up to the average. I'm
using If statements to show improvement if the salesperson
is below average, and how my boss has asked me to have the
spreadsheet automatically show any information that is
changing (i.e. the new figures if a salesperson is brought
up to the average) in green to make changes stand out.

Because an improvement is only made if a person is
currently below average, I can not change the color by
using conditional formatting. Is there a way to
programmatically change the color of the information in a
cell if a certain condition is met?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Programmatically changing cell color

Tina,

You can also build a regular macro with a loop, or better yet a change event
macro behind the sheet.
Use If statements or Select Case to determine the shading of the cell.

--
sb
"Tina" wrote in message
...
I have a spreadsheet that shows the current situation of
25 sales people in an organization, and then finds the
average of certain information. I then show how the
company's situation can be improved by helping salespeople
with below average numbers come up to the average. I'm
using If statements to show improvement if the salesperson
is below average, and how my boss has asked me to have the
spreadsheet automatically show any information that is
changing (i.e. the new figures if a salesperson is brought
up to the average) in green to make changes stand out.

Because an improvement is only made if a person is
currently below average, I can not change the color by
using conditional formatting. Is there a way to
programmatically change the color of the information in a
cell if a certain condition is met?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Programmatically changing cell color

Hello Tina,
I currently do a similar process in VBA inside an Access
report. Where I compare last weeks numbers to this weeks
numbers and assign an empty text box a Red, Yellow or Green
background and border color. The color is dependent on how
the number falls. Red for being below (Goal - .05), Yellow
for being around Goal (Goal +/- .05) and Green for
achieving greater than (Goal + .05).

If this sounds like what you are looking for let me know.
I can only post from home due to security issues at work.

Charles.



-----Original Message-----
I have a spreadsheet that shows the current situation of
25 sales people in an organization, and then finds the
average of certain information. I then show how the
company's situation can be improved by helping salespeople
with below average numbers come up to the average. I'm
using If statements to show improvement if the salesperson
is below average, and how my boss has asked me to have the
spreadsheet automatically show any information that is
changing (i.e. the new figures if a salesperson is brought
up to the average) in green to make changes stand out.

Because an improvement is only made if a person is
currently below average, I can not change the color by
using conditional formatting. Is there a way to
programmatically change the color of the information in a
cell if a certain condition is met?
.

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
Changing the color of a cell based on the color of another cell. LATC Excel Discussion (Misc queries) 7 December 4th 09 09:49 PM
Changing color of cell Noelsy New Users to Excel 1 December 1st 07 05:13 AM
changing the color of a cell zhj23 Excel Discussion (Misc queries) 6 December 1st 07 03:09 AM
Changing cell color Alf Excel Worksheet Functions 2 August 23rd 07 07:34 PM
Changing Cell Color GWOOD Excel Worksheet Functions 2 November 10th 05 05:40 PM


All times are GMT +1. The time now is 07:19 PM.

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"