Secure / Protect Your Macro

aequitas1903

Board Regular
Joined
Mar 8, 2012
Messages
127
Hello,

I search the forum but can't find a thread which informs how we can secure our macros. Maybe it is so easy but I am a newbie :) Is there an option in excel developer section or a code that can protect my macros to be taken from anyone or can I set a master password to "Step into" macros.

I need your help because I am going to share a .xlsm file that includes macros in workbook. I dont want anyone to take that macro from the workbook to their personal.xlsb . They can use it in the excel file but can't take it :)

Thank to you guys.
Regards
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
In the VBE, Tools > VBA Project Properties, Protection tab tick Lock Project for Viewing and enter a password. Save, close and re-open the workbook to see the effect.
 
Upvote 0
Thank you so much VoG. Just figured it out and came here to say I found it but you are faster than me :) Thank you so much again for your help.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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