Skip to main content

Autofit columns

Make columns just wide enough for their contents, like double-clicking a column border in Excel.

Command in the Excel toolkit · id ooa.excel/autofit_columns · 4 inputs, 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
ColumnAnyNoLetter or 1-based number of the first column; every used column when empty.
CountNumberNo1How many columns from the first one.
SheetStringNoSheet name; active sheet when empty.
SessionStringNoexcelWorkbook session.

Outputs​

OutputTypeWhat it is
countNumberNumber of columns resized.