Protect current VBA Project?

G

Guest

Hi, All

Is it possible to protect current VBA Project with a password in VBA?

There is a Protection Property of VBProject Object in "Microsoft Visual
Basic for Application Extensibility", but where i could set the password?
 
G

Guest

Right click the VBA project in the project view.
Select VBA Project properties.
Click the Protection tab.
Check lock for viewing and then provide password.

the next time you open the project you will be prompted to supply the
passowrd.
 
J

Jim Rech

The only way to assign a password with code is by using Sendkeys. I've
never done it but others have reported that it works.

--
Jim
| Hi, All
|
| Is it possible to protect current VBA Project with a password in VBA?
|
| There is a Protection Property of VBProject Object in "Microsoft Visual
| Basic for Application Extensibility", but where i could set the password?
 
H

helmekki

Jim Rech you mentioned that
(but others have reported that it works)

Colud you please let me know when you get it ?
i.e. Is it possible to protect current VBA Project with a password i
VBA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top