Previous - xlsInsertTxt Section Home - Microsoft Excel Next - xlsSetFontSize


xlsSetFont ( )

Sets the font for the active range of selected cells

Usage:

xlsSetFont (object me, string fontName)

Parameters:

fontName ( string ) the font name to use for the selected range of cells

Returns:

(integer) - The success code

Example:

xtRose.xlsLaunch( )
xtRose.xlsNewBlank( )
xtRose.xlsSetRange( 1, 1, 5, 3 )
xtRose.xlsInsertTxt( [ ["a","b","c","d","e"], [1,2,3,4,5], [1.1, 2.2, 3.3, 4.4, 5.5] ] )
xtRose.xlsSetFont( "Times New Roman" )

Notes:


Previous - xlsInsertTxt Section Home - Microsoft Excel Next - xlsSetFontSize