How can I hide Protected Excel AddIn Functions from Appearing in Insert Function Dialogue Box?

不羁岁月 提交于 2020-01-05 04:51:13

问题


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!


回答1:


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


来源:https://stackoverflow.com/questions/1799249/how-can-i-hide-protected-excel-addin-functions-from-appearing-in-insert-function

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!