RangeRowOutline method: PSSpreadsheet class

Syntax

RangeRowOutline(startrow, rowcount, collapse)

Description

Use the RangeRowOutline method to expand or collapse a range of rows in the active spreadsheet.

Parameters

Parameter Description

startrow

Specifies the starting row number.

rowcount

Specifies the number of rows to be expanded or collapsed.

collapse

Specifies a Boolean value indicating whether to collapse or expand the rows.

Returns

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

Example

The following example collapses three rows.

&startrow = 2;
&rowcount = 3;
&b_collapse = True;
&ssObject.RangeRowOutline(&startrow, &rowcount, &b_collapse);