如何隐藏受保护的 Excel 插件函数,使其不出现在插入函数对话框中?

发布于 2024-08-12 15:15:01 字数 252 浏览 2 评论 0原文

然而,我最近发现,当您在“或选择类别”下拉列表中选择“用户定义”时,所有公共函数都会显示在“插入函数”对话框中。

即使您使用密码保护项目并将其锁定以供查看,也会发生这种情况。

要进入“插入函数”对话框,请按 Shift-F3。

私有函数不会显示在列表中,但不可能将所有函数设为私有,特别是如果您想跨模块重用它们。

有没有办法阻止存储在受保护加载项中的公共函数显示在 Excel 的“插入函数”对话框中?

谢谢!

I recently discovered, however, that all public functions are displayed in the "Insert Function" dialogue box when you select "User Defined" in the "Or select a category" drop down list.

This happens even if you password protect the project and lock it for viewing.

To get to the "Insert Function" dialogue box press Shift-F3.

Private functions are not displayed in the list, but it is impossible to make all functions private, especially if you want to reuse them across modules.

Is there a way to prevent public functions stored in a protected add-in from being displayed in the "Insert Function" dialogue box in Excel?

Thanks!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

断爱 2024-08-19 15:15:01

将以下代码添加到您的模块将使公共函数可以通过代码访问,但会将它们隐藏在此对话框中。

Option Private Module

Adding the following code to your module will make the public functions accessible through code but will hide them in this dialog.

Option Private Module
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文