How to protect Enable and Disable Option in Excel

azad092

Board Regular
Joined
Dec 31, 2019
Messages
198
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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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.
 
Upvote 0
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....
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,186
Members
448,554
Latest member
Gleisner2

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