Skip to playerSkip to main contentSkip to footer
  • 5/27/2025
Discover how to automatically autofit column in Excel. This is how we adjust cell size in excel automatically. Essentially, how to make excel cells expand to fit text automatically, without manually. I will also demonstrate excel autofit column width shortcut for windows. We will be using VBA to automatically Autofit column width.

Manually Autofit Column Width
1) Home ~ Cells ~ Format
2) Autofit Column Width
FYI. Autofit row is also available in this pull down menu.

Manually Autofit Column Width (shortcut)
1) Alt + HOI
FYI Alt+HOA is for autofit row.

Automatically Autofit Column Width
1) Right-click the sheet
2) View Code
3) Select Worksheet
4) Enter these instructions
Cells.EntireColumn.AutoFit
5) Save using Ctrl + S
6) Close Editor


how to make excel cells expand to fit text automatically,how to adjust cell size in excel automatically,excel autofit column width shortcut windows,
how to autofit columns in excel,how to adjust column width in excel,
cells.entirecolumn.autofit
autofit entire workbook vba,
autofit cell content excel,
cells autofit excel,autofit cells,
How do you AutoFit all cells at once?,
How do I AutoFit specific cells in Excel?,
What is the shortcut to AutoFit all cells in Excel?,
How do you AutoFit cell size to contents?,
Transcript
00:00if you want the ability to auto adjust the column width like this all you have
00:04to do is this steps here right click on the tab here view code and then in here
00:09you're gonna select worksheet over here you're gonna type cells with a s at the
00:15back and then you're gonna say entire column and then you're gonna say auto
00:19fit like that and after that ctrl s to save your VBA and let's close the VBA
00:25editor and now if you type a long word or long color like this you can see that
00:31the column width on column B adjusts accordingly likewise price let's say it
00:38adjusts accordingly and even if you enter a new column let's say a shorter one it
00:43adjusts accordingly and if you change the width like this the column width on that
00:48column D changes accordingly

Recommended