Function returns a #VALUE! when it should return #NAME?
See original GitHub issueHello 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
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (6 by maintainers)
Top Results From Across the Web
How to name functions with multiple return values
Function names should not describe their return value, at least not inherently. A function should describe what the function's purpose is.
Read more >python - How to write a function to return the variable name?
When you pass something to a function, you are passing the object, not the name. The same object can have many names or...
Read more >Function return values - Learn web development | MDN
When the function completes (finishes running), it returns a value, which is a new string with the replacement made. In the code above,...
Read more >2.2 — Function return values (value-returning functions)
First, your function has to indicate what type of value will be returned. This is done by setting the function's return type, which...
Read more >12.5. Returning a value from a function
The return statement is followed by an expression which is evaluated. Its result is returned to the caller as the “fruit” of calling...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Your object will be of type
ExcelError
which is an enum. This function describes the parameter:Thanks for this @govert