I read an Excel sheet, then delete rows and finally write it back to the sheet.
Problem:
Using write range only the length of the new table gets replaced and on the bottom there are still rows from the old table. Is there a way to replace a sheet as a whole (including empty rows) or is there an option like “empty sheet”?
e.g. Sheet 1
Row 1: A B C
Row 2: D E F
Row 3: G H I
Row 4: X Y Z Sheet 2
Row 1: A B C
Row 2: D E F
Row 3: X Y Z
→ If I replace Sheet 1 with Sheet 2, I want only the values of Sheet 2 but I then see the row with X Y Z twice.
Thanks for the reply. I’m still not getting the result I need.
In my workflow I first read the Excel table, then delete some rows and finally write it back to the Excel sheet. I would like to have the sheet to ONLY have the new values and no empty rows between them.
Let’s say the table length was first 4 rows.
A
B
C
D
Then I delete row B and write it back with a length of 3 rows. Wouldn’t that mean that I get the following?
A
C
D
D