1860746 Members
675 Online
110415 Solutions
New Discussion

excel macros

 
Jeff Hagstrom
Regular Advisor

excel macros

Is there away to protect and hide the macro so that nobody can see the macros? Including going to thru the menu when the document is open by going to tools then macro's.
1 REPLY 1
Ron Kinner
Honored Contributor

Re: excel macros

From: http://www.angelfire.com/biz7/julian_s/julian/julians_macros.htm

"Security in Excel [4/2/2002] (back to top)
Level 1 - To protect your excel files, there are a few steps required to make it more difficult for other users to by pass security. To prevent changes made to the worksheet, you need to protect your worksheet. See protecting sheets. To prevent sheets from being renamed, moved or deleted, protect the workbook. However protection of worksheets and workbook can easily be hacked using macros as shown by an Excel developer. I believe the next level of protection is protecting your macros. To protect your macros, point at your project in the explorer window, right click on it and select VBA project properties, click on the Protection tab, check on Lock Project for Viewing and next key in your password and you're done. Now the project cannot be viewed or amended.

Level 2 - The next step is to force the user to enable your macro when opening your file. The best way is to use a macro to hide the important sheets (see Hiding sheets) when saving your file. Upon opening the file, a macro will be used to unhide these sheets. If the user disables the macros when opening the worksheet, they will not be able to view your worksheet unless they allow the macro to run."

Ron