如何隐藏受保护的 Excel 插件函数,使其不出现在插入函数对话框中?
然而,我最近发现,当您在“或选择类别”下拉列表中选择“用户定义”时,所有公共函数都会显示在“插入函数”对话框中。
即使您使用密码保护项目并将其锁定以供查看,也会发生这种情况。
要进入“插入函数”对话框,请按 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将以下代码添加到您的模块将使公共函数可以通过代码访问,但会将它们隐藏在此对话框中。
Adding the following code to your module will make the public functions accessible through code but will hide them in this dialog.