Hello,
I need VBA help; I have data range C2:J51 total 8 columns out of 8 if any entire column has only single value in it make font colours red.
In this given example there are 3 columns which has in the entire column single value in the column C=G, in the column E=5 and in the column H=9 so i want these columns font should be show in red rest columns in black.
For more detail the image is attached.
Thank you all.
I am using Excel 2000
Regards,
Moti
I need VBA help; I have data range C2:J51 total 8 columns out of 8 if any entire column has only single value in it make font colours red.
In this given example there are 3 columns which has in the entire column single value in the column C=G, in the column E=5 and in the column H=9 so i want these columns font should be show in red rest columns in black.
For more detail the image is attached.
* | A | B | C | D | E | F | G | H | I | J | K | L |
1 | Data1 | Data2 | Data3 | Data4 | Data5 | Data6 | Data7 | Data8 | ||||
2 | G | 5 | 5 | 5 | 5 | 9 | 5 | 5 | ||||
3 | G | 5 | 5 | 5 | 5 | 9 | 5 | 5 | ||||
4 | G | 5 | 5 | 5 | 5 | 9 | 5 | 5 | ||||
5 | G | 5 | 5 | 5 | 5 | 9 | 5 | 5 | ||||
6 | G | G | 5 | 5 | 5 | 9 | 5 | 5 | ||||
7 | G | G | 5 | 5 | 5 | 9 | 5 | 5 | ||||
8 | G | 9 | 5 | 5 | 5 | 9 | 5 | 5 | ||||
9 | G | 5 | 5 | G | 5 | 9 | 5 | 5 | ||||
10 | G | G | 5 | G | 5 | 9 | 5 | 5 | ||||
11 | G | 9 | 5 | G | 5 | 9 | 5 | 5 | ||||
12 | G | 5 | 5 | 9 | 5 | 9 | 5 | 5 | ||||
13 | G | G | 5 | 9 | 5 | 9 | 5 | 5 | ||||
14 | G | 9 | 5 | 9 | 5 | 9 | 5 | 5 | ||||
15 | G | 5 | 5 | 5 | G | 9 | 5 | 5 | ||||
16 | G | G | 5 | 5 | G | 9 | 5 | 5 | ||||
17 | G | 9 | 5 | 5 | G | 9 | 5 | 5 | ||||
18 | G | 9 | 5 | 5 | G | 9 | 5 | 5 | ||||
19 | G | 5 | 5 | G | G | 9 | 5 | 5 | ||||
20 | G | G | 5 | G | G | 9 | 5 | 5 | ||||
21 | G | 9 | 5 | G | G | 9 | 5 | 5 | ||||
22 | G | 5 | 5 | 9 | G | 9 | 5 | 5 | ||||
23 | G | G | 5 | 9 | G | 9 | 5 | 5 | ||||
24 | G | 9 | 5 | 9 | G | 9 | 5 | 5 | ||||
25 | G | 5 | 5 | 5 | 9 | 9 | 5 | 5 | ||||
26 | G | G | 5 | 5 | 9 | 9 | 5 | 5 | ||||
27 | G | 9 | 5 | 5 | 9 | 9 | 5 | 5 | ||||
28 | G | 5 | 5 | G | 9 | 9 | 5 | 5 | ||||
29 | G | G | 5 | G | 9 | 9 | 5 | 5 | ||||
30 | G | 9 | 5 | G | 9 | 9 | 5 | 5 | ||||
31 | G | 5 | 5 | 9 | 9 | 9 | 5 | 5 | ||||
32 | G | G | 5 | 9 | 9 | 9 | 5 | 5 | ||||
33 | G | 9 | 5 | 9 | 9 | 9 | 5 | 5 | ||||
34 | G | 5 | 5 | 5 | 5 | 9 | G | 5 | ||||
35 | G | G | 5 | 5 | 5 | 9 | G | 5 | ||||
36 | G | 9 | 5 | 5 | 5 | 9 | G | 5 | ||||
37 | G | 5 | 5 | G | 5 | 9 | G | 5 | ||||
38 | G | G | 5 | G | 5 | 9 | G | 5 | ||||
39 | G | 9 | 5 | G | 5 | 9 | G | 5 | ||||
40 | G | 5 | 5 | 9 | 5 | 9 | G | 5 | ||||
41 | G | G | 5 | 9 | 5 | 9 | G | 5 | ||||
42 | G | G | 5 | 9 | 5 | 9 | G | 5 | ||||
43 | G | 9 | 5 | 9 | 5 | 9 | G | 5 | ||||
44 | G | 5 | 5 | 5 | G | 9 | G | 5 | ||||
45 | G | G | 5 | 5 | G | 9 | G | 5 | ||||
46 | G | 9 | 5 | 5 | G | 9 | G | 5 | ||||
47 | G | 5 | 5 | G | G | 9 | G | 5 | ||||
48 | G | G | 5 | G | G | 9 | G | 5 | ||||
49 | G | 9 | 5 | G | G | 9 | G | 5 | ||||
50 | G | 5 | 5 | 9 | G | 9 | G | 5 | ||||
51 | G | G | 5 | 9 | G | 9 | G | 5 | ||||
52 | ||||||||||||
53 | ||||||||||||
54 |
Thank you all.
I am using Excel 2000
Regards,
Moti