Three Methods:Secure VBA Code with a PasswordHide VBA Code in a ... Excel 2007 and later, you may need to save as an XLSM file for your code to work.) ...
www.wikihow.com