How do I hide VBA code?

I wrote VBA code for Excel 2010.   I need to install it on 3 computers.  How can i hide the code from being seen?  Some sort of DLL conversion?
pderingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
Will you settle for password protection? BTW it's not unhackable.

Go to the IDE, select Tools|VBA Project Properties|Protection and then select 'Lock project for viewing' and add your password.
0
pderingAuthor Commented:
Password protection would not resolve this particular situation.
0
Martin LissOlder than dirtCommented:
What is the situation other than not wanting the user to be able to see the code?
0
rspahitzCommented:
Ultimately, and code can be seen in one way or another,  One more "hidden" way is to make and add-in (although I've never made one.)  the password option is great because, like a locked car, it keeps the casual person out.

Another option is to "obfuscate" the code (change names, add additional modules and classes, etc) in a way that the average person would have trouble understanding it (although, then you'll probably have trouble understanding it at some point.)  You can get around this by creating your own "translator" that takes code from one file and re-writes it in a more obscure fashion by, for example, replacing all variable names with something less meaningful.

this really comes down to what Martin asked about what you expect your users to be doing.  What if they actually get the code (say, from your computer)?  What if they try to steal it (which they can do with a .dll anyway)? What if they write their own re-integrator?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin LissOlder than dirtCommented:
Which method did you choose to use?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.