Skip to main content

Autofit columns

Resize columns to fit their content.

Command in the Google Workspace toolkit · id ooa.google/sheets_autofit_columns · 6 inputs (2 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Spreadsheet IDStringYesThe spreadsheet: its id, its full link (https://docs.google.com/spreadsheets/d/...), or its exact name in Drive (a name made only of letters, digits, - and _ is read as an id; use the link for such names).
SheetStringNoSheet (tab) name; the first sheet when empty.
From columnStringNoFirst column (letter or number); all columns when empty.
To columnStringNoLast column (letter or number); the first column when only that is given.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.