Is there an easy way to prevent someone from reading/changing the macros that I put in my workbook?
Is there an easy way to prevent someone from reading/changing the macros that I put in my workbook?
Variatus has good tips, and here are the actual steps to take:
Go to the VBA Editor window (ALT + F11) > Tools > VBAProject Properties > Protection tab > check next to Lock project for viewing > enter a password below there > Hit OK.
Here is out tutorial for this:
You can set a password for the VBA Project in the VB editor window. Note that the password will not take effect until you save, close and reopen the workbook.
Also note that the password doesn't securely protect your code from determined attack. There are easy to follow instructions for breaking into protected VBA code available on the Internet. More security is afforded by using COM add-ins written in a .NET language and stored in compiled format. However, to keep friendly colleagues from messing with your code password protection is very effective.