How do I protect Visual Basic for Application Code

Z

Zagrijs Venter

I have noticed that MS's templates and other Excel files received from other
sources needs a password to open the VBA source code. I have been unable to
find any assistance from OLH or figure it out on m,y own how to protect my
VBA source code. Any help appreciated.
 
D

Dave Peterson

Open excel
open your workbook
hit alt-f11 (to get to the vbe)
hit ctrl-r (to see the project explorer)
with your project selected in the project explorer
Tools VBAProject Properties
Protection tab.
 
J

JE McGimpsey

However, you should recognize that there are ways to disable this
protection in a matter of seconds, including inexpensive commercial
crackers.
 
Z

Zagrijs Venter

Thanks to both replies

Zagrijs

JE McGimpsey said:
However, you should recognize that there are ways to disable this
protection in a matter of seconds, including inexpensive commercial
crackers.
 
Z

ZsO

Hi,
Is there any way to really protect my work (VBA code)? I am also interested
in protect my MS Excel VBA work under Mac OS X!

Thank you for any help!
 
M

Mangus Pyke

Is there any way to really protect my work (VBA code)? I am also interested
in protect my MS Excel VBA work under Mac OS X!

Launch the VB Editor.

Right-click the module and select properties.

There's a password field to prevent viewing.

MP-
 
K

Ken Wright

But that can be bypassed if you know how, so don't necessarily rely on it to
protect the crown jewels.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------­------------------------------­----------------
It's easier to beg forgiveness than ask permission :)
------------------------------­------------------------------­----------------
 

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