xlsx.clear
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.
| Code | Input | Output | Description |
result = xlsx.clear(wb, sheet, range, [what="all"]) | wb —not documented yetsheet —not documented yetrange —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.