Excel Save (Session)
Excel Save (Session)
Section titled “Excel Save (Session)”Type: excel-save · Package: Excel Activities v1.0.0
Saves changes from an Excel session to disk without closing it**. Useful for making intermediate saves during a long process (so as not to lose progress), or for saving a copy in another path (equivalent to “Save As”).
How it works
Section titled “How it works”Persists session changes to file. If you enter savePath, save to that new path (without logging out); if you skip it, save to the original path.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
session | expression | The session returned by Excel Open. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
savePath | expression | Save to a different path (Save As). Skip it to save to the original path. |
Example
Section titled “Example”Saved intermediate inside a long loop, and a final dated copy:
Excel Open path = = asset("acumulado.xlsx") → output: libroFor Each items = = lotes itemVariable = lote └─ activities: Append Excel Rows session = = libro data = = lote Excel Save session = = libro // guardado intermedio por seguridadExcel Save session = = libro savePath = = "C:/backups/acumulado_" + today().ToString("yyyyMMdd") + ".xlsx"Excel Close session = = libroRelated activities
Section titled “Related activities”- Excel Close — guardar y cerrar al terminar.
- Excel Open — open the session.