Append Excel Range
Append Excel Range
Section titled “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).
How it works
Section titled “How it works”- Detects the last row with data on the sheet.
- Write
datastarting from the next row, always from column A. - The DataTable is written row by row, without headers (a DataRow, in a single row).
- Guarda.
Accepts session or path — see the two modes.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
data | expression | The DataTable to add (or a DataRow for a single row). Writes the values, without headers. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | expression | Excel Open session (instead of path). |
path | expression | Route to .xlsx (quick mode: open, save and close alone). |
sheet | expression | Name or index of the sheet. By default, the first. |
Example
Section titled “Example”Append the rows of a DataTable to the end of a history file:
Append Excel Range path = = "C:/logs/history.xlsx" data = = records // a DataTableRelated activities
Section titled “Related activities”- Append Excel Rows — accumulate DataTables with smart header.
- Write Excel Range — write at a fixed position.