标签: excel user-defined-functions
是否可以对Defined Name使用User Defined Function,然后在定义之外声明其参数?
Defined Name
User Defined Function
如果我想要定义MyFunction(ByVal val As String, ByVal position As Integer, Optional ByVal separator As String = ","):
MyFunction(ByVal val As String, ByVal position As Integer, Optional ByVal separator As String = ",")
当我定义名称时,我不会收到错误。
但是当我使用=MyNamedFunction(B2, 0)在单元格中引用该函数时,它会给我#REF!。
=MyNamedFunction(B2, 0)
#REF!