Click here to Skip to main content
15,921,276 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when our team copies data from an excel file sheet (*.XLS) to the current workbook sheet. The copy works fine but colors and formatting go absolute unexpected.

then we switch to saving the XLS file to XLSX first and then copying it to the current worksheet but it all the same.

Is this expected or can i do something about it ? that had been a time without solution.
Posted

1 solution

Hi, that may be because that the RGB and Format supported in xls and xlsx is different. Let's say that the RGB in xlsx is not totally supported in xls. which will cause format lose. You can try to point the Excel.Version to copy.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900