SetCellString method: PSSpreadsheet class

Syntax

SetCellString(rownum, colnum, string)

Description

Use the SetCellString method to set a string value for the specified cell in the active spreadsheet.

Parameters

Parameter Description

rownum

Specifies the row number for the cell.

colnum

Specifies the column number for the cell.

string

Specifies the string value to be set in the cell.

Returns

(Optional) A Boolean value: True if the method completes successfully, False otherwise.

Example

The following example sets a string value for the cell.

&rownum = 2;
&colnum = 2;
&data = "Accounting Department";
&ssObject.SetCellString(&rownum, &colnum, &data);