text: When you are in the VBA Editor (Press ALT-F11), you need to select Tools>VBA Project Properties.\n\nSelect the Protection Tab\n\nHere you can add a password just for viewing the code.\n\nThis method is more powerful than simply password protecting the sheet.