简体   繁体   English

如何保护Excel XLA避免使用密码进行编辑

[英]How to protect Excel xla from editing with password

I want to give users the ability to use the xla module without specifying the password but whenever someone tries to edit or view the VB source code of the module it should ask for a password. 我想让用户无需指定密码即可使用xla模块,但是每当有人尝试编辑或查看模块的VB源代码时,都应要求输入密码。

Is this possible to do in Excel? 这可以在Excel中完成吗? If so how can this be achieved? 如果是这样,如何实现?

Yes this is possible. 是的,这是可能的。

1- Open VBa editor and right click on the project 1-打开VBa编辑器并右键单击项目

2- In properties dialog, you can lock the code with a password 2-在属性对话框中,您可以使用密码锁定代码

Take a look at below 看看下面

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM