Consider function MyFunc
without parameters:
[ExcelFunction(Name = "MyFunc", Description = "My func")]
public static object MyFunc()
{
return "My-Func";
}
Although it has no parameters, when called from Excel using the function wizard there is one parameter listed:
Where is this parameter coming from?
Can it be removed?
This is a long-standing Excel bug. The extra argument box only goes away when you remove the function description completely.
See also: Register Excel UDF without arguments