Previous - xlsColumnWidth Section Home - Microsoft Excel Next - xlsRowHeight


xlsSetColumnWidth ( )

Sets the width of a particular column, in Excel's units.

Usage:

xlsSetColumnWidth (object me, integer x, float newWidth)

Parameters:

x (integer) - cell column index

newWidth (float) - new column width in units

Returns:

(integer) - The success code

Example:

xtRose = xtra("Rosetta").new( )
xtRose.xlsLaunch( )
xtRose.xlsOpen( "C:\myCalculations.xls", EMPTY )
nWidth = xtRose.xlsSetColumnWidth( 2, 10.0 )

Notes:

In Microsoft Excel, one unit of column width is equal to the width of one character in the Normal style. For proportional fonts, the width of the character 0 (zero) is used. Columns can only be set in column width.


Previous - xlsColumnWidth Section Home - Microsoft Excel Next - xlsRowHeight