VBA code protection in Excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how can i protect VBA code embedded in Excel, when distribute it to users.
for example, if users click "ALT+F11" to display VBA edit window, and want to
expand the code window, he need input one password, thanks
 
Hi

in the VBE Window, right mouse click on your project's name (the workbook
name) and choose VBAproject properties .. choose the protection tab, enter
the password in there to password protect it.

Cheers
julieD
"VBA code protection in Excel" <VBA code protection in
(e-mail address removed)> wrote in message
news:[email protected]...
 
In 2k (also in older versions but slightly diff path);
In the VBE;
"Tools->VBAProject-Properties" -Protection tab.

One small word of warning (from sad experience);
If you protect it in one version then try to open it in a prior version
it won't allow you to enter the password.
Also, it is not foolproof.
 
As in, there are techniques available to remove VBA protection in
slightly more than a heartbeat.
 
Also, "just when you do make it foolproof, the world invents a better
fool":-)
 

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

Back
Top