挥发性Excel函数和在其上使用Restuate()的VBA UDF之间的性能有何不同?

发布于 2025-01-21 21:43:02 字数 289 浏览 4 评论 0原文

我有一个不寻常的用例 - 我们有一个计算规则表和另一个表格,可以查找该表以进行计算。因此,我们进行Xlookup返回公式,然后执行公式。

例如,我有一个称为execute_formula()的VBA UDF,

Function Execute_Formula(Formula As String)

Execute_Formula = Evaluate(Formula)

End Function

我如何看到execute_formula(“ a1”)比间接(“ a1”)的速度更慢?

I have an unusual use case -- we have a table of calculation rules and another table that looks up that table in order to make calculations. So we do an XLOOKUP that returns a formula, and then we execute the formula.

For example, I have a VBA UDF called execute_formula()

Function Execute_Formula(Formula As String)

Execute_Formula = Evaluate(Formula)

End Function

How would I see how much slower Execute_Formula("A1") is than INDIRECT("A1")?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文