Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想让用户能够在不指定密码的情况下使用 xla 模块,但是每当有人试图编辑或查看模块的 VB 源代码时,它应该要求输入密码。
这可以在 Excel 中完成吗?如果是这样,如何实现?
是的,这是可能的。
1-打开VBa编辑器并右键单击项目
2-在属性对话框中,您可以使用密码锁定代码
看看下面