Return #N/A 来自 ExcelDNA 的错误
Return #N/A error from ExcelDNA
我是 excelDNA
的新手,所以我可能遗漏了一些明显的东西。我正在尝试从 excelDNA
UDF return #N/A
。我正在使用的功能(通过 Visual Studio 2010)如下:
public static object returnError()
{
return ExcelDna.Integration.ExcelError.ExcelErrorNA;
}
从 Excel 工作表调用时,此 return 是 #VALUE
- 但我需要 #N/A
。我不能只 return 字符串“#N/A”,因为像 iserror()
这样的 Excel 函数对它不起作用。
将 ExcelErrorNA
替换为任何其他错误类型,例如 ExcelErrorDiv0
仍然会产生 #VALUE
.
如有任何帮助,我们将不胜感激
好的 - 看来您必须停止 ExcelDNA.Integration 引用在本地复制才能获得它。我在这里找到的原始主题:
https://groups.google.com/forum/#!topic/exceldna/MeYq0-LiGLM
我是 excelDNA
的新手,所以我可能遗漏了一些明显的东西。我正在尝试从 excelDNA
UDF return #N/A
。我正在使用的功能(通过 Visual Studio 2010)如下:
public static object returnError()
{
return ExcelDna.Integration.ExcelError.ExcelErrorNA;
}
从 Excel 工作表调用时,此 return 是 #VALUE
- 但我需要 #N/A
。我不能只 return 字符串“#N/A”,因为像 iserror()
这样的 Excel 函数对它不起作用。
将 ExcelErrorNA
替换为任何其他错误类型,例如 ExcelErrorDiv0
仍然会产生 #VALUE
.
如有任何帮助,我们将不胜感激
好的 - 看来您必须停止 ExcelDNA.Integration 引用在本地复制才能获得它。我在这里找到的原始主题:
https://groups.google.com/forum/#!topic/exceldna/MeYq0-LiGLM