# Workbook files

Keep a `.jsheets` workbook for ongoing work and export `.xlsx` when you need to share with Excel users.

## Open a workbook

Choose **File › Open…** and select a `.jsheets` or `.xlsx` file. Opening `.xlsx` imports a separate workbook and leaves the original file untouched. JSheets recalculates formulas on import. When iterative calculation is enabled, circular formulas open with their saved values. Check the import report for unsupported features or calculations.

## Save a JSheets workbook

Use **File › Save** to update the current `.jsheets` file. Use **File › Save as…** to create a native file from an import or to give a workbook a new name. The new file becomes the active save destination. **Save** opens **Save as…** for untitled, recovered, and read-only workbooks.

A native save keeps the workbook’s data, formulas, formatting, history and branches, agent task records, and Model map annotations. To share the current state without the edit history, choose **File › Save a copy without history…**. The copy does not change your active workbook or save destination.

## Export to Excel

Choose **File › Export XLSX…**. Export writes a separate workbook and does not save the active `.jsheets` workbook. The Excel file does not carry JSheets edit history, branches, or agent task records.

- Values, formulas, sheet names and visibility, and defined names round-trip. Unchanged imported formulas retain their original text.
- Supported formatting, row heights, column widths, hidden rows and columns, merged cells, sheet views, filters, conditional formatting, validation, and cell notes round-trip.
- Supported tables, charts, PivotTables, and slicers round-trip. Unsupported PivotTable configurations can open as saved values instead of live PivotTables. Editing a chart can drop Excel settings JSheets does not represent.
- Export builds a new Excel file. It does not preserve every Excel feature. Do not use it to preserve macros, embedded images, or threaded comments. JSheets does not run VBA.

Excel limits a sheet to 1,048,576 rows and 16,384 columns. If the workbook exceeds those limits, review the export warning before choosing whether to export a truncated copy. Check important results in Excel before distributing the file.

## Unsaved edits and recovery

JSheets does not autosave the named workbook. It records edits to a private recovery copy when you open a `.jsheets` file or create a blank workbook. **Save** publishes those edits. An Excel import or **Season model** sample does not use that recovery system in the session where you first open it. Save as `.jsheets`, then reopen the saved file to use the recovery system for future edits.

When you close, quit, or open another workbook with unsaved edits, choose **Save**, **Don’t save**, or **Cancel**. **Don’t save** discards the unsaved edits.

After an unexpected exit, look for **Recovery** above **Recent** on the start page. Open an entry to recover its unsaved edits. If the saved file changed on disk, the entry is marked **opens as a copy**. A recovered workbook shows **(Recovered)** in its title. Use **Save as…** to keep the recovered version. Use **Discard** only if you want to remove the unsaved recovery copy without touching the saved file.

See [Changes](https://jsheets.app/docs/changes.md) for inspecting or restoring edits within a workbook.
