open_workbook
Open an Excel workbook from disk for risk modeling. Provide an absolute file path; if already open, returns the existing workbook.
Instructions
ModelRisk: Open a workbook (.xlsx/.xlsm) from disk in the running Excel so the other tools can act on it. Pass an absolute file path. If a workbook with the same file name is already open, returns that one (Excel won't open two with the same name). Requires Excel running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the workbook file, e.g. r'C:\models\risk.xlsx'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| sheets | No | ||
| active_sheet | No |