ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA code protection in Excel (https://www.excelbanter.com/excel-programming/317460-vba-code-protection-excel.html)

VBA code protection in Excel

VBA code protection in Excel
 
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

JulieD

VBA code protection in Excel
 
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
wrote in message
...
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




RWN

VBA code protection in Excel
 
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.
--
Regards;
Rob
------------------------------------------------------------------------
"VBA code protection in Excel" <VBA code protection in
wrote in message
...
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





JE McGimpsey

VBA code protection in Excel
 
As in, there are techniques available to remove VBA protection in
slightly more than a heartbeat.


In article ,
"RWN" wrote:

Also, it is not foolproof.


RWN

VBA code protection in Excel
 
Also, "just when you do make it foolproof, the world invents a better
fool":-)

--
Regards;
Rob
------------------------------------------------------------------------
"JE McGimpsey" wrote in message
...
As in, there are techniques available to remove VBA protection in
slightly more than a heartbeat.


In article ,
"RWN" wrote:

Also, it is not foolproof.





All times are GMT +1. The time now is 12:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com