Are you talking about setting a code password? This requires a password to view any code modules. In the VBE click Tools -> Properties(will say Project Properties, where project is your project's name) -> Click the protection Tab -> Lock Project for Viewing -> set a password -> click Ok.