Protect your Macro's?

railguage48

New Member
Joined
Dec 8, 2012
Messages
11
I am using excel 2007.

Is there a way to ensure that when you send an excel spreadsheet to someone else that you can ensure that they cannot see any of your macros?

The problem is that when I open an excel spreadsheet and goto my developer tab and then click on macros a whole list of macros show up.
The question above is to try and make sure that this list does not show up and I also hope that it prevents anyone from editing my macros?

Thanks.
 
Are you trying to prevent people from seeing your code, or are you trying to prevent all the macros being listed in the Run Macros dialog box.

If the latter, you could put Option Private Module at the top of each module. Alternatly, giving a macro an optional argument (that is never used in the macro) will prevent that macro from being shown in that dialog box.
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Are you trying to prevent people from seeing your code, or are you trying to prevent all the macros being listed in the Run Macros dialog box.

If the latter, you could put Option Private Module at the top of each module. Alternatly, giving a macro an optional argument (that is never used in the macro) will prevent that macro from being shown in that dialog box.

Thanks Mike,

I am going to do the first option you suggested .... along with the other suggestion given by Mr Kowz, I feel much more secure in sending out work to other folks knowing they cannot just copy your solutions from the VBA module.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,223,718
Messages
6,174,077
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top