0

I am creating a new .xls file for the Microsoft Office 2003 from existing template in C# using .NET 4.0 and Excel Interop Object Library. My template already contains all needed data and various formulas so my task is just to change some cells which are used in formulas as parameters. I do this without any problem...

The problem appears when i try to open my new file: when the file is opened at 1st time addins of excel doesnt work and as the result all the formulas show me error messages like "#NAME". When i launch the file again - everything is ok...

This makes me angry....

Does anybody know where the problem could be? And what is the solution??

Thank you in advance.

4

1 回答 1

0

你用Excel 2010打开吗?如果是这样,则 Excel 认为它带有宏并错误地显示它。

基本上,当单元格内的公式无法解释或未知时,会出现#Name 错误。

问题与公式的路径有关,我猜在第一次启动时它无法正确找到公式路径,因此在下一次启动时它会正确显示它们。

于 2012-10-08T21:01:35.820 回答