Unprotect in a macro

  • Thread starter Thread starter Partly Void
  • Start date Start date
Yes.

You must lock the project from viewing.

In VBE right-click the workbook/project and Properties>Protection.

Check the lock from viewing and add a password.

The workbook must be saved and closed before protection of code takes place.


Gord Dibben MS Excel MVP
 
Thanks Gord,

Gord Dibben said:
Yes.

You must lock the project from viewing.

In VBE right-click the workbook/project and Properties>Protection.

Check the lock from viewing and add a password.

The workbook must be saved and closed before protection of code takes place.


Gord Dibben MS 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