clear_range
Clears the contents of a rectangular cell range in an Excel worksheet. Specify the start and end cells to remove values from that block.
Instructions
Clear values from a rectangular range of cells.
Args: file_path: Path to workbook. sheet_name: Worksheet name. start_cell: Top-left cell of range to clear. end_cell: Bottom-right cell of range to clear.
Returns: str: Success message.
Raises: (Propagates exceptions from the underlying tools on I/O or invalid ranges.)
Notes: - Destructive: clears cell values (but not necessarily styles) — mention in API docs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_cell | Yes | ||
| file_path | Yes | ||
| sheet_name | Yes | ||
| start_cell | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |