我使用Excel-DNA创建了一个简单的UDF,如下所示:
[ExcelFunction(Description = "Return something")]
public static string ReturnSomething(string a, string b)
{
return a + " - " + b;
}
当我转到Excel时,该功能可以工作,但描述也不会显示所需的参数。我如何让它们展示?
Image of an Excel built-in formula with parameters shown which is expected from my UDF
这是使用Excel-DNA构建的Excel中自定义函数的预期行为。该描述仅显示在Insert Function
对话框中。
如果你想为参数设置IntelliSense,你可以使用Excel-DNA IntelliSense库 - https://github.com/Excel-DNA/IntelliSense