Hi,
I have a workflow that populates a result into an excel sheet.
I want to populate the new result into a new line in the same excel sheet every time the workflow runs.
For example:
I have no idea how it can be done. I appreciate it a lot if someone can help me with this.
You can do this very easily by using the append range activity. For this you dont need to specify the next a available row or anything. Just the activity and pass the datatable which you want to write and it will take care of it on it’s own…
Hi,
Just a quick question here.
If I want to display the header, is there any way to do it as Append Range activities does not have the “AddHeader” option.
If I use Append Range activities at the same time displaying the header, how should I do?
Hi,
By using the Append Range activities I am able to get what I want in which the data is not been overwritten.
However, if I want to get the header as well, is there a way of doing it?
currently, the result is like this:
you can use try catch activity for this, like below…
Kindly do not go for syntax
Try dt Dummy = New DataTable() dtDummy = wb.ReadRange("Sheet1") use append range activity here
Note: if sheet already have data only then read range activity will work else if there is no data in Sheet then Read range activity will fail and it will be catch in catch section