Argument type validation in the Function Wizard

橙三吉。 提交于 2019-12-13 05:13:05

问题


In Excel, the DATE function for example shows "=number" against each field.

If I enter a string in these fields in place of a number, I get the #VALUE! error.

Can similar functionality be achieved with Excel-DNA?


回答1:


I don't think Excel supports a way to show those types for user-defined functions. Excel-DNA registers functions with the right types (like taking a Double). Excel completely controls how things are displayed in the Function Arguments dialog, and some aspects only work for built-in functions, like having mandatory parameters (displayed in bold).



来源:https://stackoverflow.com/questions/21585612/argument-type-validation-in-the-function-wizard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!