xlsx.move_range
result = xlsx.move_range(wb, sheet, range, to, [to_sheet=], [copy=false])
Input: wb, sheet, range, to, to_sheet, copy · Output: result
What it is
Moves range so its top-left corner lands on cell to (on to_sheet, default the same sheet), taking values, formulas and formatting and overwriting what was there; blanks in the source blank the destination. A move keeps formulas as written; copy=true leaves the source and shifts relative references as a paste does. Formulas elsewhere that point into the moved cells are NOT rewritten. A range that cuts through a merged range is refused.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = xlsx.move_range(wb, sheet, range, to, [to_sheet=], [copy=false]) | wb —not documented yetsheet —Moves range so its top-left corner lands on cell to (on to_sheet, default the same sheet), taking values, formulas and formatting and overwriting what was there.range —Moves range so its top-left corner lands on cell to (on to_sheet, default the same sheet), taking values, formulas and formatting and overwriting what was there.to —Moves range so its top-left corner lands on cell to (on to_sheet, default the same sheet), taking values, formulas and formatting and overwriting what was there.to_sheet optionalMoves range so its top-left corner lands on cell to (on to_sheet, default the same sheet), taking values, formulas and formatting and overwriting what was there.copy optional (default false)copy=true leaves the source and shifts relative references as a paste does. | result number | Returns the number of cells moved. *Added in v0.4.7* |
Examples
No documentation example calls this form yet. The File I/O chapter is where one belongs.