Skip to content

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”).

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.

ParameterEditorDescription
sessionexpressionThe session returned by Excel Open.
ParameterEditorDescription
savePathexpressionSave to a different path (Save As). Skip it to save to the original path.

Saved intermediate inside a long loop, and a final dated copy:

Excel Open path = = asset("acumulado.xlsx") → output: libro
For Each items = = lotes itemVariable = lote
└─ activities:
Append Excel Rows session = = libro data = = lote
Excel Save session = = libro // guardado intermedio por seguridad
Excel Save session = = libro savePath = = "C:/backups/acumulado_" + today().ToString("yyyyMMdd") + ".xlsx"
Excel Close session = = libro