4
1
I know it is possible to password protect an entire Excel workbook, but can I have the workbook open (no password) and yet password protect just the macro?
(I'm using Excel 2007.)
Update: to be clear, I'm looking to password protect access to viewing the macro, not to running it. So, everyone should be able to run it but only I can access the source code.
+1 Better approach as it requires knowledge of other tools/techniques to crack a VBA password, whereas a little VBA knowledge could disable a code password check – brettdj – 2011-10-06T08:30:34.863
Thanks, this works. Note that it is necessary to check the Lock project for viewing checkbox. Related question: it seems I need to create a new macro to unlock and read the existing macro. Isn't there an easier way? – Reinstate Monica - Goodbye SE – 2011-10-08T20:09:18.053