Skip to content

Append Excel Range

Type: excel-append-range  ·  Package: Excel Activities v1.0.0

Adds rows immediately below the last row of data on the sheet, starting in column A. Unlike Write Excel Range (which writes to a fixed position that you indicate), Append calculates where what’s already there ends and adds next — ideal for accumulating data on a sheet over time without overwriting.

Takes a DataTable (or a single row as a DataRow) and writes only the cell values, not the row of column names (it does not add a header).

  1. Detects the last row with data on the sheet.
  2. Write data starting from the next row, always from column A.
  3. The DataTable is written row by row, without headers (a DataRow, in a single row).
  4. Guarda.

Accepts session or path — see the two modes.

ParameterEditorDescription
dataexpressionThe DataTable to add (or a DataRow for a single row). Writes the values, without headers.
ParameterEditorDescription
sessionexpressionExcel Open session (instead of path).
pathexpressionRoute to .xlsx (quick mode: open, save and close alone).
sheetexpressionName or index of the sheet. By default, the first.

Append the rows of a DataTable to the end of a history file:

Append Excel Range path = = "C:/logs/history.xlsx" data = = records // a DataTable