SpreadsheetAddRow
Adds a row to an Excel spreadsheet object.
Method Signature
SpreadsheetAddRow(spreadsheetObj=[any], data=[any], row=[any], column=[any], insert=[any])Arguments
spreadsheetObj
ANY
true
The spreadsheet object.
data
ANY
true
An array of data to add to the row, or a comma delimited string of cell entries, one per column
row
NUMERIC
false
The row number where to insert the data (1-based). If not specified, adds to the end.
column
NUMERIC
false
The column number where to start inserting the data (1-based). Default is 1.
insert
BOOLEAN
false
Whether to insert a new row or overwrite existing row. Default is false.
true
Examples
Add a row with array data:
// Add a row of data as an array
var spreadsheet = SpreadsheetNew();
var rowData = [ "John", "Sales", 75000 ];
SpreadsheetAddRow( spreadsheet, rowData );
println( "Row added to spreadsheet" );Add a row to the end:
Insert a row at a specific position:
Add comma-delimited data:
Related
SpreadsheetAddRows() - Add multiple rows at once
SpreadsheetDeleteRow() - Delete a row
SpreadsheetSetCellValue() - Set individual cell values
SpreadsheetFormatRow() - Format a row
Row Operations Guide - Working with rows
Last updated
Was this helpful?
