简体   繁体   English

如何使用 vba 检索内置 excel 函数的完整列表?

[英]How to retrieve with vba the full list of built-In excel functions?

This is it.就是这个。 I am trying to get the list of built-in functions of Excel (not built-in functions of VBA) by using VBA.我正在尝试使用 VBA 获取 Excel 的内置函数列表(不是 VBA 的内置函数)。

I know how to retrieve UDFs and functions in non-protected XLA and XLL addins, but I can't find a way of getting the list of excel functions.我知道如何在不受保护的 XLA 和 XLL 插件中检索 UDF 和函数,但我找不到获取 excel 函数列表的方法。 Do you know how I could obtain that using VBA?你知道我如何使用 VBA 获得它吗? I think it should be a way.我认为这应该是一种方式。

I would like to avoid using list of functions copied from some site (or ms help), because that would ask the user to check it, in a regular basis, to keep it updated, which is not an option.我想避免使用从某个站点(或 ms 帮助)复制的函数列表,因为这会要求用户定期检查它以保持更新,这不是一个选项。

BTW, the context of this is a kind of parser of excel formulas to vba, which I have almost finished;顺便说一句,这里的上下文是一种将excel公式解析为vba的解析器,我已经快完成了; I only miss this.我只怀念这个。

Thank you!谢谢!

This is a partial answer.这是部分答案。 It only displays worksheet functions installed with your version of Excel.它仅显示随的 Excel版本安装的工作表函数。

  1. Open the VBA window打开 VBA 窗口
  2. Click View > Object Browser单击视图>对象浏览器
  3. Scroll down the Classes pane and click on WorksheetFunction向下滚动Classes窗格并单击WorksheetFunction
  4. The list of functions will be displayed in the Members pane函数列表将显示在成员窗格中


在此处输入图片说明

Another open issue is how to transfer the displayed list of members into a worksheet column.另一个未解决的问题是如何将显示的成员列表转移到工作表列中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM