To protect your code form being viewed:
Open VBE: Alt-F11
If the "Project - VBA Project Explorer" is not visable near the upper left as it's own window, hit: Ctrl-R
In the Project Explorer, Right-Click Select: VBAProject(YourWorkBookNameHere), then from the Right-Click Menu, Select: VBA Project Properties...
Select the "Protection" Tab in the VBA Project Properties Pop-Up: Check: Lock Project for Viewing, Then add a password you won't forget.
OK, then hit the top-most upper right close "X" to return to your Worksheet.
Save the Workbook, then Exit and re-open the same Workbook, from now on or untill you remove the protection [same as add] no one can view your code [without knowing the password or a few tricks (Excel has poor security!) most people will not be able to view your code!].