如何让 Excel 加载项 (Excel 2007) 中的用户定义函数与自动完成功能配合使用?
我创建了一个加载项,当我在表达式框中使用它时,自动完成功能不起作用。当我单击用户定义函数下的函数“f”按钮时,我确实看到了它们。我只是希望自动完成功能能够与它们一起使用,这样我就不必记住它们的名字,也不必每次都单击功能“f”按钮。
I have created an Add-In and when I go to use it in the expressions box the autocomplete doesn't work. I do see them when I click the functions 'f' button under user defined functions. I would just like the AutoComplete to work with them so I don't have to memorize their names or have to click the functions 'f' button each time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尽管这是一个旧线程,但似乎解决方案很少。我在 JKP 应用程序开发服务中找到了一个示例,最初由 Laurent Longre 发现。一项警告解释如下:
http://www.jkp-ads.com/Articles/RegisterUDF01.asp
此解决方案仅注册/取消注册 UDF,但用户仍然需要保存工作簿作为 .xlam 并安装插件。我使用以下代码自动将当前工作簿安装为 Excel 插件(如果您要更新插件,则需要添加一些错误捕获以确定插件是否已安装)。
Although this is an old thread, there seems to be very little solutions out there. I have found an example over at JKP Application Development Services originally found by Laurent Longre. One caveat is explained below:
http://www.jkp-ads.com/Articles/RegisterUDF01.asp
This solution only registers/un-registers the UDF, but the user will still have to save the workbook as an .xlam and install the addin. I used the following code to automatically install the current workbook as an Excel addin (if you are going to be updating the addin, you'll need to add some error catching to determine if the addin is already installed).
AFAIK(不幸的是)在当前的 Excel 版本(包括 Excel 2010)中无法使 UDF 使用自动完成功能。有多种方法可以为函数向导添加参数描述和帮助。
AFAIK there is no way (unfortunately) in current Excel versions including Excel 2010 to make a UDF use Autocomplete. There are ways to add argument descriptions and help for the function wizard.