I’m using the VBA code below to apply AutoFit Row Height to an entire Workbook.
<i>Rows().AutoFit</i>
At the bottom of each Worksheet in the Workbook, I have a logo in the last cell (i.e. last row, last column). I do not want this row to have the AutoFit Row Height applied. To complicate matters, I quite often have to add rows to the Worksheets, so the range of rows that the AutoFit Row Height is applied will change.
<b>How do I modify the VBA code to apply the AutoFit Row Height only to the rows that have data, excluding the last row with the logo in the last cell?</b>
I am just beginning to learn VBA code and I haven’t been able to find the answer to my issue anywhere. Appreciate any help.
<i>Rows().AutoFit</i>
At the bottom of each Worksheet in the Workbook, I have a logo in the last cell (i.e. last row, last column). I do not want this row to have the AutoFit Row Height applied. To complicate matters, I quite often have to add rows to the Worksheets, so the range of rows that the AutoFit Row Height is applied will change.
<b>How do I modify the VBA code to apply the AutoFit Row Height only to the rows that have data, excluding the last row with the logo in the last cell?</b>
I am just beginning to learn VBA code and I haven’t been able to find the answer to my issue anywhere. Appreciate any help.