excel Protecting VBA code with a password

If your workbook contains VBA code, you may wish to use a password to prevent others from
viewing or modifying your macros. To apply a password to the VBA code in a workbook, activate
the VBE (Alt+F11) and select your project in the Projects window. Then choose Tools➜xxxx
Properties (where xxxx corresponds to your Project name) to display the Project Properties
dialog box.