How to protect Enable and Disable Option in Excel

azad092

Board Regular
Joined
Dec 31, 2019
Messages
173
Office Version
  1. 2007
Platform
  1. Windows
hi
good morning guys
I have a data entry sheet having some macros... I want to protect the macro setting option so that no one able to disable the macro without password or specific access.
If is it possible please guide me
thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

johnnyL

Well-known Member
Joined
Nov 7, 2011
Messages
2,096
Office Version
  1. 2013
  2. 2007
Platform
  1. Windows
I don't think you can password allowing/not allowing macros.

You can 'password protect' your macro code.

You can also 'make' it so a script will not run unless macros are enabled.
 

azad092

Board Regular
Joined
Dec 31, 2019
Messages
173
Office Version
  1. 2007
Platform
  1. Windows
I don't think you can password allowing/not allowing macros.

You can 'password protect' your macro code.

You can also 'make' it so a script will not run unless macros are enabled.
Yes i know about the VBA explorer protection.... but my question is about protection of enabling or disabling of macro setting located in macro setting under trust center
Ok.... but thanks for your kind response....
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
68,027
Office Version
  1. 365
Platform
  1. Windows
As far as I know, you cannot do that from within Excel and/or VBA as it would defeat the whole point of macro security.
You can however do it if you have admin rights to your network, but it would probably have to be done via a login script.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,968
Messages
5,767,375
Members
425,409
Latest member
Whatisanexcel

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
Top