简体   繁体   中英

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.

Is this possible to do in Excel? If so how can this be achieved?

Yes this is possible.

1- Open VBa editor and right click on the project

2- In properties dialog, you can lock the code with a password

Take a look at below

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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