Snippets Collections
Sub AutofitSpecificColumns()

Range("D:D,F:F").EntireColumn.AutoFit

End Sub
Sub AutofitAllColumns()

Cells.EntireColumn.AutoFit

End Sub
star

Mon May 04 2026 00:27:55 GMT+0000 (Coordinated Universal Time) https://www.goskills.com/excel/resources/vba-code-library

#excel-formula
star

Mon May 04 2026 00:27:11 GMT+0000 (Coordinated Universal Time) https://www.goskills.com/excel/resources/vba-code-library

#excel-formula

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension