Qu

xlsx.clear

Builtin index · File I/O

result = xlsx.clear(wb, sheet, range, [what="all"])

Input: wb, sheet, range, what · Output: result

What it is

Empties a range: what="contents" removes values and formulas and keeps the formatting, "formats" removes the formatting and keeps the values, "all" both.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = xlsx.clear(wb, sheet, range, [what="all"])
wb —not documented yet
sheet —not documented yet
range —Empties a range: what="contents" removes values and formulas and keeps the formatting, "formats" removes the formatting and keeps the values, "all" both.
what optional (default "all")Empties a range: what="contents" removes values and formulas and keeps the formatting, "formats" removes the formatting and keeps the values, "all" both.
result number
Returns the number of stored cells it touched. *Added in v0.4.7*

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.