C
C Brandt
I have a routine that distiles a lot of information and puts it into a large
table. I would like to color code the results from the very best, dark
green, through yellow to the worst, a dark red. I would like these colors in
about 20 steps, ten above average and 10 below. I used the following code in
a test routine to set the color:
Cells(2, 4).Select ' D2
Selection.Interior.Color = RGB(255,0,0) ' Red
Cells(3, 4).Select ' D2
Selection.Interior.Color = RGB(250,0,0) ' Red Lighter
Cells(4, 4).Select ' D2
Selection.Interior.Color = RGB(245,0,0) ' Red Lighter yet
etc.
I expected the results to be a red color, getting lighter eac row, but
instead they were all the same color.
When it gets to around 192 the color changes to a different shade the again,
right around 32.
What am I missing?
Any help would be appreciated,
Thanks,
Craig
table. I would like to color code the results from the very best, dark
green, through yellow to the worst, a dark red. I would like these colors in
about 20 steps, ten above average and 10 below. I used the following code in
a test routine to set the color:
Cells(2, 4).Select ' D2
Selection.Interior.Color = RGB(255,0,0) ' Red
Cells(3, 4).Select ' D2
Selection.Interior.Color = RGB(250,0,0) ' Red Lighter
Cells(4, 4).Select ' D2
Selection.Interior.Color = RGB(245,0,0) ' Red Lighter yet
etc.
I expected the results to be a red color, getting lighter eac row, but
instead they were all the same color.
When it gets to around 192 the color changes to a different shade the again,
right around 32.
What am I missing?
Any help would be appreciated,
Thanks,
Craig