So i got a case , where when i copy a data from 1 excel then write that data to another excel,
somehow a couple of cell have diffrent format
original excel value : 22-jan-2022 with format of date
new excel file : on that column i set the format as “general” and most data will have format of “general” but some cell will still have format of “Date”
On the new excel where you want to write by default set the predefined format you want. If that is not working you can use invoke vba, create a VB and post performing the business logic you can run the VB to reset the formats.