Whatever message this page gives is out now! Go check it out!
spreadsheetClearCellRange(spreadsheetObject,startRow,startColumn,endRow,endColumn)Name | Required | Type | Description |
spreadSheetObject | Yes | ExcelInfo | The Excel spreadsheet object from which to clear cells. |
startRow | Yes | Integer | The start row number of cell range. |
startColumn | Yes | Integer | The start column number of cell range. |
endRow | Yes | Integer | The end row number of cell range. |
endColumn | Yes | Integer | The end column number of cell range. |
<cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "inputFile.xls";
theFile2=GetDirectoryFromPath(GetCurrentTemplatePath()) & "outputFile.xls";
obj =SpreadsheetRead(#theFile#)
spreadsheetClearCellRange(obj,10,2,10,2)
spreadsheetWrite(obj, "#theFile2#", "", "yes", "no")
value=spreadsheetGetCellValue(obj,10,2)
writedump(var=value,format="text")
</cfscript>