I have a query related to excel.
I have two sheets in my excel having the same data columns but the last one is different and I need to add the last data column on sheet2 to sheet1 with the values, without using it for each loop.
You can use Assign activity and write as below
dt1.Rows(dt1.Rows.Count-1).Items(“ColumnName”) = dt2.Rows(dt2.Rows.Count-1).Items(“ColumnName”)
Check below for your reference
Hope this may help you
Thanks
Hi,
Hope the following helps you.
dt1= dt1.AsEnumerable.Select(Function(r,i)
r("AddedColumn")=dt2.Rows(i).item("AddedColumn")
Return r
End Function).CopyToDataTable
Regards,
1 Like
Hi @Yoichi
Thank you so much!
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.