ExcelDna: Function returns a #VALUE! when it should return #NAME?
Hello guys!
In Excel:
=HelloWorld(TRUF)
Returns "Hello World!" even if parameter TRUF returns #NAME? in Function Argument Window (Ctrl + A).
=HelloWorld(TRUF) should return #NAME?.
C# Code:
using ExcelDna.Integration;
public static class MyFunctions
{
[ExcelFunction(Description = "Hello world")]
public static string HelloWorld(
[ExcelArgument("True or False?")] bool foo)
{
return "Hello World!";
}
}
Thanks
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 18 (6 by maintainers)
Your object will be of type
ExcelErrorwhich is an enum. This function describes the parameter:Thanks for this @govert