In earlier sessions we saw that how we can write code, generate code and customize it but at the same time it’s very essential to protect it. Excel provides an option to make our Code password protected.
In Next few steps we will see how to make our macro secure.
In VB Editor, right click on the “VBAProject(Book1)” in Project window and select “VBA Project Properties..”
“Project Properties” window will be displayed.
Step 2: Select the Protection tab
Step 3: Check “Lock Project For Viewing” Option
Step 4: Enter Password and Confirm Password.
Step 5: Hit OK Button
Next time when you open the Excel and if you try to expand “VBAProject(Book1)” , You will have to enter the password to access the code.