Hi,
i would like to know how can i add a new row with new data to an existing excel ? i use read range to read the data table, i create a dataRow = DataTable.NewRow i count the number of row in it, i assign several variable to the new row, i use add row
And know how can i add that row at the end of DataTable?
i used append activity but it seems to copy the existing DT, copy it and paste next to it.
Hi,
you have the datatable with you, and the add data row activity will add the new row from the end of the datatable rows, And main thing is columns should be of same type for the new datarow that you like to add to the existing table
Hi, from excel application scope you will get the data into datatable using read range activity once you get the data inside the datatable then you can do add datarow activity, the add data row activity will add new row at the end of the table not to excel, once you have completed adding rows to data table write the data back to excel using write range.
There is a simple way to add/append a single datarow to an excel file. Most of the activities accepts DataTable (write range, append range), so if you would like to append a single row to an excel you can pass it as a parameter of this activity using: