Hi,
In the Visual Basic Editor, in the Project Explorer window select the project you want to protect.
Then go Tools | VBA Project properties | Protection tab.
Tick the "Lock project for viewing" checkbox and enter in and confirm the password. Save the project.
Once it has been closed and re-opened the protection will come into effect.
HTH