Macro to AutoFit columns and Rows in Excel


Auto Fit Columns


Sub AutoFitColumns()
Cells.EntireColumn.AutoFit
End Sub

AutoFit Rows


Sub AutoFitRows()
Cells.EntireRow.AutoFit
End Sub

Leave a Reply

Your email address will not be published.Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.