Tools > VBAProject Protection > Protection from the menu. Then check the Lock Project For Viewing checkbox and enter a password. You'll then have to save the project, close it and reopen it for the password to take effect. Please note that there are password *******s available commercially that can remove passwords very easily.