GetCols
function GetCols(nCol: number = null): ApiRange | "null"
Description
Returns a Range object that represents the columns in the specified range.
Parameters
- nCol
number
null The column number. *
Returns
ApiRange | "null"
Try It
var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRange("A1:C3");
oRange.GetCols(2).SetFillColor(Api.CreateColorFromRGB(255, 213, 191));