Need to Protect/Hide Macro/Modules
Posted by Dan on October 15, 2001 10:18 AM
From the Microsoft Web Site, HTH:
You can protect the modules from being viewed by locking the project for
viewing, providing a password, and then saving the file normally.
NOTE: By doing this, you will not be able to save a Microsoft Excel workbook
down to an earlier format.
To protect a module from being viewed, follow these steps (or the
appropriate ones for your version of Excel).
NOTE: The following steps are for Microsoft Excel 97:
In the Visual Basic Editor, click Project Name Properties on the Tools menu,
where Project Name is the name of the project that you are protecting.
Click the Protection tab.
Click to select the Lock Project for Viewing check box. Type a password in
the Password box, and then type the password again in the Confirm Password
box.
Click OK.
On the File menu, click Close and Return To Microsoft Excel.
In Microsoft Excel, click Save.
To view a protected module, follow these steps:
On the Tools menu, point to Macro, and then click Visual Basic Editor.
In the Visual Basic Editor, click the entry for the add-in in the Project
pane.
When you are prompted, type the password for the add-in, and then click OK.
Dennis