Robot Task Activities - Excel Row
The Excel Row activities select, set, insert, delete, copy and merge whole rows on the active worksheet.

All activities in this category must be inside a New Excel or Attach to Excel container activity. See Excel. Variables are resolved in every field.
With DisplayAlerts cleared on the parent container, which is the default, Excel deletes and overwrites without asking. Save the workbook before you change its structure.
Select Row
Selects the row.

- Row: the row number or range of rows, for example
2or1:5
Set Row value
Writes a value to every cell of the row.

- Row: the row number or range of rows, for example
2or1:5 - Value: the value written to every cell of the row, across to the last column of the worksheet
Clear Row
Clears the row: its values, formulas and formatting. Same field as Select Row.
Delete Row
Deletes the row. Same field as Select Row.
The difference from Clear Row is that Delete Row removes the row and shifts the rows below it up, whereas Clear Row empties the row and leaves the layout unchanged.
Insert Row
Inserts a row at the given row number, and shifts the existing rows down. Same field as Select Row.
Copy Row
Copies the row to another row.
- Source: the row number or range of rows to copy, for example
1or1:2 - Destination: the row number or range of rows the source is copied to, for example
2or4:5; what was there is overwritten
Cut Row
Moves the row to another row. Same fields as Copy Row.
Merge Rows
Merges all rows from the Source row to the Destination row. Same fields as Copy Row.
Unmerge Rows
Splits merged cells in the row back into separate cells. Same field as Select Row.
Tips
- Deleting rows inside a loop shifts every later row up, so an index captured before the delete no longer points at the record you expect. Either work from the last row upward, or mark rows and delete them in a separate pass
- Clear Row removes formatting as well as values
- Use a range such as
1:5in Set Row value to write the same value across several rows in one activity - Use Insert Row at row
1to add a header row to a sheet that was built without one - To write different values to the cells of a row, use Excel Cell Set Cell value activities. Set Row value writes one value across the whole row