在 VSTO vb.net 中获取 excel 工作表函数的参数描述

Get argument description of excel worksheetfunctions in VSTO vb.net

我正在尝试构建一个函数,returns使用工作表函数的名称和字段位置作为输入来描述内置工作表函数的参数。

GetExcelArgumentDescription("IF",1) should return "logical_test"
GetExcelArgumentDescription("IF",2) should return "value_if_true"
GetExcelArgumentDescription("IF",3) should return "value_if_false"

我在 this one (screenshot).

这样的加载项中看到过这个

是否可以通过 VSTO 获取此 argument description (screenshot)? vb.net 中的代码看起来如何?

Excel 的 worksheetfunction 属性 不是可寻址的集合。您可以从 Microsoft's listing 创建自己的列表。然后引用你自己的列表。