SpreadsheetSetCellValue

Specifies the value of an Excel spreadsheet object cell.

Method Signature

SpreadsheetSetCellValue(spreadsheetObj=[any], value=[any], row=[any], column=[any])

Arguments

Argument
Type
Required
Description
Default

spreadsheetObj

ANY

true

The spreadsheet object.

value

ANY

true

The value to set in the cell.

row

NUMERIC

true

The row number (1-based).

value

ANY

true

The value to set in the cell.

Examples

Set a simple cell value:

// Write a value to a cell
var spreadsheet = SpreadsheetNew();
SpreadsheetSetCellValue( spreadsheet, 1, 1, "Hello" );
SpreadsheetSetCellValue( spreadsheet, 1, 2, 42 );
SpreadsheetSetCellValue( spreadsheet, 1, 3, true );

Build a data table:

Update existing cells:

Last updated

Was this helpful?