Skip to main content

Write Range

AutomatR.Excel.Activities.WriteRange

The "Write Range" activity in AutomatR is part of the Excel activities package, facilitating the automation of writing data from a DataTable variable into a specified cell range within Microsoft Excel. This activity streamlines the process of populating Excel spreadsheets with data extracted from other inbound activities.

NOTE: This activity can only be used in Excel Root activity.

Properties

NameDescription
Input
Data TableEnter the DataTable variable containing the data to be written into the Excel spreadsheet. DataTable variables storing extracted data from other activities.
HeaderWhen enabled, considers column headers as the first row in the mentioned cell range. Boolean variables to enable or disable considering headers.
Starting CellEnter the cell value to start writing the data. String variables containing the cell value, e.g., "A1" or "B2".
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelayEnter the wait time in seconds (Example: 5 seconds i.e., 5) to start the activity. Integer variables containing the delay duration.

How to use:

  1. Drag and drop the "Write Range" activity onto the workflow.
  2. Configure the properties by specifying the DataTable variable, starting cell, and whether to include headers.
  3. Optionally, configure the delay.
  4. Execute the workflow to write the specified data from the DataTable into the designated cell range in Excel.

Important:

  • Ensure that the Excel workbook is open and accessible.
  • Provide a valid starting cell and DataTable variable containing the data to be written.
  • Consider enabling the "Include Headers" option if the DataTable has column headers.