Hi Bill,
I just want to make clear my problem.
I have a table, listing Programmes that I am recording for the week starting on Saturday from 6:00:00 am and finishing on Friday to 5:59:59 am.
I enter a code in "Column K" which I use the Conditional Formatting to Highlight the each Row.
I.e. Say I have the following.
____________________________________________________________________________________________________________
| Programme | Ch. No. | Channel Name | Day of Week | Date | Start Time | End Time | Duration | Code |
| Title | | | | | | | | |
|--------------|----------|-----------------|----------------|-------|------------|-----------|-----------|--------|
| Prog. 1 | 101 | BBC1 | Sat. | | | | | |
|--------------|----------|-----------------|----------------|-------|------------|-----------|-----------|--------|
| Prog. 2 | 103 | ITV | Sat. | | | | | |
|--------------|----------|-----------------|----------------|-------|------------|-----------|-----------|--------|
ad so on...
So when I enter a code, it will only Highlight that Row, so if I enter "A" in the code, for Prog. 1, then Programme Title to Duration will be highlighted in Green.
And if I enter a code "Y" in Prog. 2, then Programme Title to Duration will be highlighted in Red.
I have a total of 12 codes, so I have created them, so what I want to do is a For... Next Loop, so it will create for each row the 12 Conditional Formatting, from Row 17 to Row 216.
So I want to get it to change the Row Number for each of the Rows.
So I need it to set the Row Number to go into the Range that the Conditional Formatting is set too,
so it needs to be for the first loop Bno:Jno
Also need to change where it looks for the code which is $K$no
So I need a line for each of the 12 Conditional Formatting which will do the following:
B + no = B17
J + no = J17
Range for Conditional Formatting = B17:J17
Set the Code to the following:
=$K$ + no + "=A"
Rule for conditional Formatting = =$K$17="A"
Then same numbers for the next Condition, once all 12 have been set, Repeat the Block of Conditional Formatting for 18, 19, 20, .... 216
I hope this is more clear.
Neil