In the Visual Basic Editor, Right click on the module Node that you want to
protect, select the protection tab, and enter a password. this will protect
your VBA code.
Hope this helps
Sunil Jayakumar
tmb said:
Is there a way to protect your vba code in an excel app?
I did some research on locks some years ago to find out how much I
needed to spend to protect the equipment in a machine shop I was
setting up. I found a really good locksmith who told me that when you
buy a lock you're really buying time. A better lock will only keep out
an expert a little longer than a lesser lock. I don't know a lot about
computer security, but I'd guess it's very similar. The more
sophisticated the encryption method, the longer it will take a good
hacker to break it. But he/she will break it.
I would bet that would be true for many passwords. But the VBA project password
can be removed in seconds--the password doesn't have to be broken--it's just
removed.
I was trying to point out that no matter how obfuscated the project password is,
that it won't matter if the protection is removed. (The time to break it won't
be changed at all.)
But I think we're in violent agreement. (A nice phrase picked up from work
where both sides would continue to argue without realizing that there was no
significant difference.)
It never went that far at work--close, but not quite. <vbg>
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.