Hi Michael,
I think it could be helpful for others if you maybe could attach a code snippet of your current approach.
I talked to a colleague and we came up with two ideas:
Option 1 (Get around formatting issues, because you write in the original excel):
- Read out the Excel into a data table
- Inside this datatable look for the last row that has the information that you want to delete (https://www.ibm.com/docs/en/rpa/23.0.x?topic=base-data-table)
- Use the "Set Value in Excel" command with an empty string as a value or leave out the value entirely as its optional in this command. Use this on the original excel. That way formatting should be not touched and you just set the row to empty (https://www.ibm.com/docs/en/rpa/21.0.x?topic=office-set-value-in-excel)
Option 2 (manually format dates before writing datatable to file):
- Use the same approach that you already tried, but format the date values manually before writing them back to a excel file
Hope this helps :)