Hi all,
I'm trying to set up a way to format column widths and row heights in a macro (so that it can read a value from a cell and format a column to that width).
I've used the code below whcih can be repeated for the number of rows and columns desired below
Worksheets("Sheet1").Range("d1").ColumnWidth = Range("d1")
However, I want to be able to do this on a workbook that could potentially have 40+ sheets. Is there a way of applying this code to operate over the whole workbook rather than just one sheet at a time?
Thanks for any suggestions,
I'm trying to set up a way to format column widths and row heights in a macro (so that it can read a value from a cell and format a column to that width).
I've used the code below whcih can be repeated for the number of rows and columns desired below
Worksheets("Sheet1").Range("d1").ColumnWidth = Range("d1")
However, I want to be able to do this on a workbook that could potentially have 40+ sheets. Is there a way of applying this code to operate over the whole workbook rather than just one sheet at a time?
Thanks for any suggestions,