Protect code in Add-In

  • Thread starter Thread starter BBB
  • Start date Start date
B

BBB

How do I go about protecting my add-in code (make it so no one can
view/change it)?

BBB
 
Go to Project Properties and on the Protection tab set the password. Be
aware though it will only deter casual users, it is easy to crack if you
want to.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Forgive my ignorance ... how do I get to the Project Properties? I'm in my
..xla add-in file.
 
You need to go into the VBE (Alt-F11), select the project, and right-click,
Properties is a menu item.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
BBB

With VBE open to your workbook/project, right-click and "Myworkbook
Properties".

On "Protection" tab check "lock for viewing" and enter password.

File must be saved/closed and re-opened for locking to take effect.

NOTE: there are password cracker utilities out there that can break into your
"locked" project, but for the casual user, no problem.

Gord Dibben Excel MVP
 

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

Back
Top