PC Review


Reply
Thread Tools Rate Thread

colorscales, icon sets, and databars referring to remote cells

 
 
JGPatrick
Guest
Posts: n/a
 
      11th Mar 2010
Is there any way in VBA to apply a colorscale, icon set, or databar to a
range, but have the color scale, icons, and databars show up in a different
range?

For instance, suppose in B1:B3 you have the number of sales of Robert, John,
and Sue, and in C1:C3 you have the dollar value of those sales, and that in
D13 you want to represent the number of sales with a color scale and the
dollar value of sales with an icon set. In other words, in D13 you want a
visual representation of the dollar value of sales overlayed on a visual
representation of the number of sales.

This is a toy example, I have a more complex application in mind.


 
Reply With Quote
 
 
 
 
Dennis Tucker
Guest
Posts: n/a
 
      12th Mar 2010
It is fairly easy to represent numbers with a color. If you wanted to
highlight the dollars by changing their cell's fill color(background), then
this can be done in several ways.

1. Conditional formatting: this is the easy and simplest way but it is also
the most limited way. This does not require macros. All of the other
methods require macros.

2. Macros 1: Setup dollar range bins and each bin is associated with a
color.

3. Macros 2: True Color(24 bits) can represent over 16 million colors. The
value zero(0) represents BLACK. The maximum value 16777215 represents
WHITE. All of the colors come from values between. The range 0-16777215
can be associated with a range of dollars.

ICON SET??

Dennis

"JGPatrick" <(E-Mail Removed)> wrote in message
news:7F41F3EE-54EB-4C77-979D-(E-Mail Removed)...
> Is there any way in VBA to apply a colorscale, icon set, or databar to a
> range, but have the color scale, icons, and databars show up in a
> different
> range?
>
> For instance, suppose in B1:B3 you have the number of sales of Robert,
> John,
> and Sue, and in C1:C3 you have the dollar value of those sales, and that
> in
> D13 you want to represent the number of sales with a color scale and the
> dollar value of sales with an icon set. In other words, in D13 you want
> a
> visual representation of the dollar value of sales overlayed on a visual
> representation of the number of sales.
>
> This is a toy example, I have a more complex application in mind.
>
>

 
Reply With Quote
 
JGPatrick
Guest
Posts: n/a
 
      12th Mar 2010
Thanks for the suggestions, especially the 2nd macro suggestion.

"Dennis Tucker" wrote:

> It is fairly easy to represent numbers with a color. If you wanted to
> highlight the dollars by changing their cell's fill color(background), then
> this can be done in several ways.
>
> 1. Conditional formatting: this is the easy and simplest way but it is also
> the most limited way. This does not require macros. All of the other
> methods require macros.
>
> 2. Macros 1: Setup dollar range bins and each bin is associated with a
> color.
>
> 3. Macros 2: True Color(24 bits) can represent over 16 million colors. The
> value zero(0) represents BLACK. The maximum value 16777215 represents
> WHITE. All of the colors come from values between. The range 0-16777215
> can be associated with a range of dollars.
>
> ICON SET??
>
> Dennis
>
> "JGPatrick" <(E-Mail Removed)> wrote in message
> news:7F41F3EE-54EB-4C77-979D-(E-Mail Removed)...
> > Is there any way in VBA to apply a colorscale, icon set, or databar to a
> > range, but have the color scale, icons, and databars show up in a
> > different
> > range?
> >
> > For instance, suppose in B1:B3 you have the number of sales of Robert,
> > John,
> > and Sue, and in C1:C3 you have the dollar value of those sales, and that
> > in
> > D13 you want to represent the number of sales with a color scale and the
> > dollar value of sales with an icon set. In other words, in D13 you want
> > a
> > visual representation of the dollar value of sales overlayed on a visual
> > representation of the number of sales.
> >
> > This is a toy example, I have a more complex application in mind.
> >
> >

> .
>

 
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
Icon Sets - Display icon in one cell depending upon value in anoth Nolene Microsoft Excel Worksheet Functions 2 26th Feb 2010 05:43 AM
Referring to Cells PeterM Microsoft Excel Misc 4 30th May 2008 02:37 PM
Sort a list with cells referring to others cells =?Utf-8?B?RnJpaXMoREsp?= Microsoft Excel Misc 6 24th Feb 2007 03:56 AM
Referring to cells =?Utf-8?B?YXByaWwyNw==?= Microsoft Excel Programming 3 16th Jun 2006 03:15 PM
Linking a horizontal set of cells to a vertical sets of cells =?Utf-8?B?UnVzc2VsbC1zdGFuZWx5?= Microsoft Excel Charting 2 21st Oct 2005 03:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:25 PM.