Hi tinywolf,
We have analyzed your shared codes and found that you have used these two number formats (“#,##0.00_”, “#,##0_”) in your code. Those two number formats are not valid in MS Excel. When we try to apply these number formats, MS Excel throws “Microsoft Excel cannot use the number format you typed” exception.
So, we request you to use these two (“#,##0.00”, “#,##0”) formatting strings instead of those invalid number formats to resolve the issue. Please try it in your application and let us know whether the issue is resolved at your side.
Regards,
Sridhar.