PC Review


Reply
Thread Tools Rate Thread

change background color of cell as value changes

 
 
S Himmelrich
Guest
Posts: n/a
 
      15th Jan 2008
Here is the result I'm looking for in regards to changing color as
cell value changes in a column ("A"):

www.atlantissupport.com/example/example.xls

Basically I'm trying to change the background color of the cell as
the
data changes in Column A. Know that the values in Column A change
dynamically with other macro code that is already completed. Also I
must pre-define enough colors to cover for expansion in the future
(probably no more then twenty). I've kept the duplicates in Column A
thinking that this may help in coding this macro and will delete
those
after the background color is completed. I assume I can use offset
for moving the color to the smaller Column B.
Hope someone can help......
 
Reply With Quote
 
 
 
 
ryguy7272
Guest
Posts: n/a
 
      15th Jan 2008
There is no VBA code in that sheet, nor is the Conditional Formatting applied
to the sheet. Simple review this web site:
http://www.contextures.com/xlCondFormat03.html

Then, apply to your specific needs:


Regards,
Ryan--
--
RyGuy


"S Himmelrich" wrote:

> Here is the result I'm looking for in regards to changing color as
> cell value changes in a column ("A"):
>
> www.atlantissupport.com/example/example.xls
>
> Basically I'm trying to change the background color of the cell as
> the
> data changes in Column A. Know that the values in Column A change
> dynamically with other macro code that is already completed. Also I
> must pre-define enough colors to cover for expansion in the future
> (probably no more then twenty). I've kept the duplicates in Column A
> thinking that this may help in coding this macro and will delete
> those
> after the background color is completed. I assume I can use offset
> for moving the color to the smaller Column B.
> Hope someone can help......
>

 
Reply With Quote
 
S Himmelrich
Guest
Posts: n/a
 
      15th Jan 2008
Sorry to be misleading on that. The example was for purposes of
demonstrating the final result. I'm already in macro mode as far as
the final results of that speadsheet, so conditional formatting is not
what I'm looking for. The referenced website you provided does not
address changing colors as values change so that isn't providing
anymore insight to my challenge. Thank you for effort and response.


On Jan 15, 11:41*am, ryguy7272 <ryguy7...@discussions.microsoft.com>
wrote:
> There is no VBA code in that sheet, nor is the Conditional Formatting applied
> to the sheet. *Simple review this web site:http://www.contextures.com/xlCondFormat03.html
>
> Then, apply to your specific needs:
>
> Regards,
> Ryan--
> --
> RyGuy
>
>
>
> "S Himmelrich" wrote:
> > Here is the result I'm looking for in regards to changing color as
> > cell value changes in a column ("A"):

>
> >www.atlantissupport.com/example/example.xls

>
> > Basically I'm trying to change the background color of the cell as
> > the
> > data changes in Column A. *Know that the values in Column A change
> > dynamically with other macro code that is already completed. *Also I
> > must pre-define enough colors to cover for expansion in the future
> > (probably no more then twenty). *I've kept the duplicates in Column A
> > thinking that this may help in coding this macro and will delete
> > those
> > after the background color is completed. *I assume I can use offset
> > for moving the color to the smaller Column B.
> > Hope someone can help......- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      15th Jan 2008
You would have to use a change event code in the sheet module to do what you
are describing, if you don't use conditional formatting. To use up to twenty
colors, you would need to set up an algorithm, probably in the form of a case
statement, that would be called if any cell in Col A changes and if the value
of the chage equals one of the cases in the algorithm, the cell color would
change accordingly.

"S Himmelrich" wrote:

> Sorry to be misleading on that. The example was for purposes of
> demonstrating the final result. I'm already in macro mode as far as
> the final results of that speadsheet, so conditional formatting is not
> what I'm looking for. The referenced website you provided does not
> address changing colors as values change so that isn't providing
> anymore insight to my challenge. Thank you for effort and response.
>
>
> On Jan 15, 11:41 am, ryguy7272 <ryguy7...@discussions.microsoft.com>
> wrote:
> > There is no VBA code in that sheet, nor is the Conditional Formatting applied
> > to the sheet. Simple review this web site:http://www.contextures.com/xlCondFormat03.html
> >
> > Then, apply to your specific needs:
> >
> > Regards,
> > Ryan--
> > --
> > RyGuy
> >
> >
> >
> > "S Himmelrich" wrote:
> > > Here is the result I'm looking for in regards to changing color as
> > > cell value changes in a column ("A"):

> >
> > >www.atlantissupport.com/example/example.xls

> >
> > > Basically I'm trying to change the background color of the cell as
> > > the
> > > data changes in Column A. Know that the values in Column A change
> > > dynamically with other macro code that is already completed. Also I
> > > must pre-define enough colors to cover for expansion in the future
> > > (probably no more then twenty). I've kept the duplicates in Column A
> > > thinking that this may help in coding this macro and will delete
> > > those
> > > after the background color is completed. I assume I can use offset
> > > for moving the color to the smaller Column B.
> > > Hope someone can help......- Hide quoted text -

> >
> > - Show quoted text -

>
>

 
Reply With Quote
 
S Himmelrich
Guest
Posts: n/a
 
      15th Jan 2008
On Jan 15, 1:07*pm, JLGWhiz <JLGW...@discussions.microsoft.com> wrote:
> You would have to use a change event code in the sheet module to do what you
> are describing, if you don't use conditional formatting. *To use up to twenty
> colors, you would need to set up an algorithm, probably in the form of a case
> statement, that would be called if any cell in Col A changes and if the value
> of the chage equals one of the cases in the algorithm, the cell color would
> change accordingly.
>
>
>
> "S Himmelrich" wrote:
> > Sorry to be misleading on that. *The example was for purposes of
> > demonstrating the final result. *I'm already in macro mode as far as
> > the final results of that speadsheet, so conditional formatting is not
> > what I'm looking for. *The referenced website you provided does not
> > address changing colors as values change so that isn't providing
> > anymore insight to my challenge. *Thank you for effort and response.

>
> > On Jan 15, 11:41 am, ryguy7272 <ryguy7...@discussions.microsoft.com>
> > wrote:
> > > There is no VBA code in that sheet, nor is the Conditional Formatting applied
> > > to the sheet. *Simple review this web site:http://www.contextures.com/xlCondFormat03.html

>
> > > Then, apply to your specific needs:

>
> > > Regards,
> > > Ryan--
> > > --
> > > RyGuy

>
> > > "S Himmelrich" wrote:
> > > > Here is the result I'm looking for in regards to changing color as
> > > > cell value changes in a column ("A"):

>
> > > >www.atlantissupport.com/example/example.xls

>
> > > > Basically I'm trying to change the background color of the cell as
> > > > the
> > > > data changes in Column A. *Know that the values in Column A change
> > > > dynamically with other macro code that is already completed. *AlsoI
> > > > must pre-define enough colors to cover for expansion in the future
> > > > (probably no more then twenty). *I've kept the duplicates in Column A
> > > > thinking that this may help in coding this macro and will delete
> > > > those
> > > > after the background color is completed. *I assume I can use offset
> > > > for moving the color to the smaller Column B.
> > > > Hope someone can help......- Hide quoted text -

>
> > > - Show quoted text -- Hide quoted text -

>
> - Show quoted text -


Do you have any examples of this type of code?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change background color of cell based on vlookup in cell Antney Microsoft Excel Misc 1 19th Oct 2009 10:55 PM
Change Cell Value Based on Another Cell Background Color =?Utf-8?B?SkFE?= Microsoft Excel Programming 1 18th May 2007 07:47 AM
background color of my cell does not change =?Utf-8?B?Q29sb3JibGluZGVk?= Microsoft Excel Misc 2 27th Mar 2005 04:55 PM
Cell compare and based on the value change the cell background color pftiv Microsoft Excel Worksheet Functions 2 15th Jan 2004 04:24 PM
Change background color in a cell. gio123bg Microsoft Excel Discussion 2 14th Jan 2004 02:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:11 AM.