记录Excel自动完成的VBA代码 [英] Documenting VBA code for Excel Auto Complete

查看:245
本文介绍了记录Excel自动完成的VBA代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编写使用VBA的excel中使用自定义函数时,如何编写文档注释,以便自动填充公式时自动显示excel?

When writing a custom function to use in excel using VBA, How to write the documentation comments so that the excel automatically displays during auto-fill of a formula?

例如,当我们开始键入VLookUp时,它显示了Vlookup作为工具提示,显示输入变量名称,如果我们从功能区中按Insert功能,将显示一个对话框,清楚地说明了该功能...如何才能在VBA中编写自定义函数时实现这一点?

For example, when we start typing VLookUp, It shows what Vlookup does as a tool tip, shows the input variable names and if we press Insert Function from the ribbon, a dialog is shown with clear explanation of the function... How can we achieve that while writing custom functions in VBA?

推荐答案

我相信你必须使用 Application.MacroOptions 注册您的功能及其说明,并可选择提供一个帮助文件使这个功能的帮助链接工作。

I believe you must use Application.MacroOptions to register your function and its description, and optionally provide a help file to make the Help on this Function link work.

不知道如何提供参数的内联描述。

Not sure how to provide inline description for the parameters though.

这篇关于记录Excel自动完成的VBA代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆