Hello I have a range of cells - a sports league table - with formulas in it from AW6 to BF50.
The cells in AW are linked to another part of the sheet where teams are input. The formula in AW6 is IF(AG6="","",AG6)) - So teams are entered in AG6 and below
If there is one team, AW6 will not be "" and all the cells across will not be "".
If there are two teams, AW6 & AW7 will not be "" and all the cells across will not be "". etc
So the number of teams in the AW column determines the height of the table.
I am looking for a piece of code which will put a simple border round the sides and bottom of the table.
So as you go down AW. At the point where you first find "", put a border along the bottom and up the side.
I would prefer code as opposed to conditional formatting if possible.
thank you
The cells in AW are linked to another part of the sheet where teams are input. The formula in AW6 is IF(AG6="","",AG6)) - So teams are entered in AG6 and below
If there is one team, AW6 will not be "" and all the cells across will not be "".
If there are two teams, AW6 & AW7 will not be "" and all the cells across will not be "". etc
So the number of teams in the AW column determines the height of the table.
I am looking for a piece of code which will put a simple border round the sides and bottom of the table.
So as you go down AW. At the point where you first find "", put a border along the bottom and up the side.
I would prefer code as opposed to conditional formatting if possible.
thank you