GOOGLE WORKSPACE Auto-resize function

The GOOGLE WORKSPACE Auto-resize function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to auto-resize columns or rows.

For a full list of available functions, please read GOOGLE WORKSPACE functions.


Description

The Auto-resize function automatically adjusts the width of columns or height of rows to fit their content in a Google Sheets spreadsheet.


Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Spreadsheet IDYesText-Google Sheets spreadsheet ID
Sheet IDYesText-Numeric sheet ID
DimensionYesSelectCOLUMNSCOLUMNS or ROWS
Start indexYesNumber0Zero-based start index of the columns or rows to resize
End indexYesNumber-Zero-based end index (exclusive) of the columns or rows to resize

Errors

  • Sheet not found – no sheet exists with the given ID
  • Invalid indices – start or end index is out of range

Tips

  • Use start=0, end=26 to auto-resize columns A through Z
  • Apply after writing data to ensure all content is visible

Related functions

  • Format cells – Apply cell formatting
  • Insert columns – Insert new columns

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.