Hi all,
I have got a printing project that I am trying to save days worth of time in.
Currently I have a list of contents in 'Sheet1' (example below):
<tbody>
</tbody>
The column widths (in excel) for A, B, C and E is currently 10 and for column D it is 20.
I have some code that will allow me to put this list of contents into multiple new sheets based on the name in column C. So 'Sheet1' automatically generates three more sheets beside it named: 'ABC123', 'DEF456' and 'GHI789'.
What I now need is some way to make all the new sheets ('ABC123', 'DEF456', 'GHI789') to have the same column width as 'Sheet1'. Does anybody know how to do this? As the examples I have seen online always refer to specific sheet names but my sheet names will change repeatedly.
Thus I need a code that will format all of the sheets in the entire workbook ('Sheet1', 'ABC123', 'DEF456' and 'GHI789') to have column widths of 10 (for columns A, B, C and E) and 20 (for column D).
Any help is greatly appreciated!
Thanks,
I have got a printing project that I am trying to save days worth of time in.
Currently I have a list of contents in 'Sheet1' (example below):
A | B | C | D | E |
2016.2017 | New | ABC123 | Yes | Full |
2016.2017 | Old | ABC123 | No | Half |
2016.2017 | New | DEF456 | No | Half |
2016.2017 | New | DEF456 | No | Half |
2017.2018 | Old | GHI789 | No | Half |
2017.2018 | Old | DEF456 | No | Half |
<tbody>
</tbody>
The column widths (in excel) for A, B, C and E is currently 10 and for column D it is 20.
I have some code that will allow me to put this list of contents into multiple new sheets based on the name in column C. So 'Sheet1' automatically generates three more sheets beside it named: 'ABC123', 'DEF456' and 'GHI789'.
What I now need is some way to make all the new sheets ('ABC123', 'DEF456', 'GHI789') to have the same column width as 'Sheet1'. Does anybody know how to do this? As the examples I have seen online always refer to specific sheet names but my sheet names will change repeatedly.
Thus I need a code that will format all of the sheets in the entire workbook ('Sheet1', 'ABC123', 'DEF456' and 'GHI789') to have column widths of 10 (for columns A, B, C and E) and 20 (for column D).
Any help is greatly appreciated!
Thanks,