close_workbook
Close an open Excel workbook by file name. Discard unsaved changes by default, or pass save=True to write them first. Returns the closed name and remaining open workbooks.
Instructions
ModelRisk: Close an open workbook by file name. By DEFAULT unsaved changes are DISCARDED (save=False) — pass save=True to write them first. Returns the closed name and the workbooks still open. Raises if the named workbook isn't open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Save before closing. False (default) discards unsaved changes. | |
| workbook_name | Yes | File name of an open workbook, e.g. 'risk.xlsx'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||