Sheets("Sheet1").Columns("C").ColumnWidth = 24
To change columns width to fit data in columns, we can use AutoFit method. The following example uses AutoFit method to change the size of C:F in the "Sheet1" worksheet:
Sheets("Sheet1").Columns("C:F").AutoFit
RowHeight property is used to change rows height of a range. For example:
Sheets("Sheet1").Rows(2).RowHeight = 56
Thank you for reading this article Changing Row and Column Size With URL https://x-tutorials.blogspot.com/2009/03/changing-row-and-column-size.html. Also a time to read the other articles.
0 comments:
Write your comment for this article Changing Row and Column Size above!