spreadsheetClearCell

Clears the contents of a single cell in the active sheet of a spreadsheet workbook. Rows and columns are 1-based (row 1, column 1 = cell A1). The fluent member form is clearCell(row, column).

spreadsheetClearCell(spreadsheetObj, row, column) → returns any

This function requires RustCFML.  Not supported on Lucee, Adobe ColdFusion, etc.

Argument Reference

spreadsheetObj any
Required

The spreadsheet workbook object.

row numeric
Required

1-based row index of the cell to clear.

column numeric
Required

1-based column index of the cell to clear.

Compatibility

RustCFML:

Not supported on wasm32.

Examples
Sample code invoking the spreadsheetClearCell function

Remove the value previously written to row 1, column 1.

wb = Spreadsheet("xlsx");
spreadsheetSetCellValue(wb, "temp", 1, 1);
spreadsheetClearCell(wb, 1, 1);
writeDump(spreadsheetGetCellValue(wb, 1, 1));

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub