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
Related Post:
---
If you like posts in this blog, you can

No comments:
Post a Comment