简体   繁体   English

向用户定义函数中的参数添加描述

[英]Adding descriptions to arguments in User-defined functions

Whenever I type in the name of a "built-in" Excel function (SUMIF, for example), a guide will pop up saying something like "(range, criteria, [sum_range])", describing the arguments that the function will accept.每当我输入“内置”Excel 函数的名称(例如 SUMIF)时,都会弹出一个指南,说“(范围,条件,[sum_range])”,描述函数将接受的参数. Is there a way to add similar names to arguments in my own user-defined functions, so that the same type of guide will appear?有没有办法在我自己的用户定义函数中为参数添加相似的名称,以便出现相同类型的指南?

Partial answer: Application.MacroOptions will do what you want -- but only when the function is invoked via the insert function dialog.部分答案:Application.MacroOptions 将执行您想要的操作——但仅当通过插入函数对话框调用该函数时。 It doesn't seem to work when you just type =funcname( directly in a cell. The following page has a nice example of how to use it:当您直接在单元格中键入 =funcname( 时,它似乎不起作用。以下页面有一个很好的示例说明如何使用它:

http://spreadsheetpage.com/index.php/tip/user-defined_function_argument_descriptions_in_excel_2010/ http://spreadsheetpage.com/index.php/tip/user-defined_function_argument_descriptions_in_excel_2010/

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

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