hide macro

  • Thread starter Thread starter GM
  • Start date Start date
G

GM

Ho to all,
i have two macro. The first is set by workbook.open, the secon is called
from the first and is placed in module1.
I want to hide both so the user cannot see them from the excel sheet.
What the solution?
 
Hi GM

if i'm understanding your question correctly, go into the VBE window (Alt &
F11) and click on the project name, now right mouse click and choose
VBAProject Properties, go to the protection tab and tick "locked for
viewing" and enter a password (twice) click OK

when the book is closed and reopened you will not be able to view the code
without the password. However, please note, that protection in excel is
relatively easy to break.

Cheers
JulieD
 

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