SetColumnWidth method: PSSpreadsheet class

Syntax

SetColumnWidth(colnum, width)

Description

Use the SetColumnWidth method to set the width of the specified column in the active spreadsheet.

Parameters

Parameter Description

colnum

Specifies the column number.

Column number must be zero-based.

width

Specifies the width of the column. Set the width in units of 1/256th of a character width.

Returns

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

Example

The following example sets the column width within the spreadsheet.

&colnum = 2;
&width = 10;
&ssObject.SetColumnWidth(&colnum, &width);