Shoji
(Shoji Yamada)
February 6, 2023, 5:24pm
1
Hello, I’m using Write DataTable Activity to write data in my excel file but instead of writing it in each row, it overwrites my existing data. My Write DataTable is inside for each loop. I’ve already look for similar solution but it does not solve it.
I’ve tried using this in my write datatable destination:
Excel.Sheet(“Search Address”).Range(“D” + (dtRef.Rows.Count + 1).ToString)
I’ve have also tried to use append range.
Rajeena_M
(Rajeena Mashnampat)
February 6, 2023, 11:27pm
2
Try append instead of write pls
Yoichi
(Yoichi)
February 6, 2023, 11:45pm
3
HI,
Can you share your input workbook and expected output as file?
Basically we can achieve it either the following approach.
Create additional datatable and write it append mode.
Add new row to the datatable and overwrite it to the original worksheet.
Regards,
Shoji
(Shoji Yamada)
February 7, 2023, 11:56am
4
Sorry for the late reply
Here’s the input file:
Special Project.xlsx (847.0 KB)
Expected output should look like this:
Shoji
(Shoji Yamada)
February 7, 2023, 11:57am
5
I already tried but still my data is overwritten
Yoichi
(Yoichi)
February 7, 2023, 11:49pm
6
HI,
FYI, the following is a sample of overwriting whole the datatable. Hope this helps you.
AutoFilterV2.zip (1.5 MB)
Regards,
1 Like
system
(system)
Closed
February 10, 2023, 11:50pm
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.