Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
RWN RWN is offline
external usenet poster
 
Posts: 104
Default 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




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default 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.

  #5   Report Post  
Posted to microsoft.public.excel.programming
RWN RWN is offline
external usenet poster
 
Posts: 104
Default 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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Put Password Protection in Code Connie Excel Discussion (Misc queries) 3 October 25th 06 08:06 PM
Code for workbook protection Ant Excel Discussion (Misc queries) 2 July 1st 05 12:58 PM
Sheet Protection and VBA Code TheRobsterUK Excel Discussion (Misc queries) 1 May 27th 05 05:18 PM
VBA code delete code but ask for password and unlock VBA protection WashoeJeff Excel Programming 0 January 27th 04 07:07 AM
protection sheet and code ??? Linou[_4_] Excel Programming 0 October 29th 03 08:37 PM


All times are GMT +1. The time now is 10:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"