appendRow
A sheet is examined whole and the row is written from column 1; a range is examined only inside itself and the row is written on its columns, below the last row of the range that holds data.
It is appendRows with one row: the same guards, the same growth of the sheet when the result would not fit, and the same rule that a cell whose text starts with = becomes a formula.
Parameters
Parameter | Type | Description |
|---|---|---|
|
| The sheet to append to, or the range to append within. |
|
| A single row: a flat array, one value per column. |
|
|
|
Returns
GoogleAppsScript.Spreadsheet.Sheet — the sheet, so calls can be chained.
Throws
Exception | Condition |
|---|---|
| no argument is passed. |
| the first argument is neither a sheet nor a range. |
| the values are not a flat array. |
Examples
Appending to a sheet
Appending within a range
See also
Source
This documentation was generated with AI (Claude) from the library's source code.