Sub AutoFitColumns() Cells.Select Cells.EntireColumn.AutoFit End Sub
Use above Excel macro code to auto fit rows in all your sheet at once
This code quickly auto fits all the columns in your worksheet. So when you run this code, it will select all the cells in your worksheet and instantly auto-fit all the columns.