是否可以在VBA中写入一个包含名称中的句点的UDF? [英] Is it possible to write a UDF in VBA that contains a period in the name?

查看:111
本文介绍了是否可以在VBA中写入一个包含名称中的句点的UDF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Excel 2010附带了一些包含其名称中的句点的函数。例如 STDEV.S PERCENTILE.EXC

Excel 2010 ships with some functions that contain a period in their name. For example STDEV.S and PERCENTILE.EXC

使用VBA可以为我自己的函数分配名称,例如 PERCENTILE.CUSTOM

Is it possible to assign a name to my own function with a name such as PERCENTILE.CUSTOM using VBA?

例如,我想使用公式 = NAME.SUFFIX()

Option Explicit

Function NAMEdotSUFFIX() As Variant

    NAMEdotSUFFIX = 42

End Function


推荐答案

不可能从VBA。 此MSDN文章显示了如何在VBA中定义函数,具体来说< a href =http://msdn.microsoft.com/en-gb/library/81ed9a62.aspx =nofollow>本文列出了元素名称的规则。

It is not possible from VBA. This MSDN article shows how to define a function in VBA, and specifically this article lays out the rules for element names.

这篇关于是否可以在VBA中写入一个包含名称中的句点的UDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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