Set "Access content programmatically" checkbox with vba

jtw5074

New Member
Joined
Jun 8, 2017
Messages
1
Hello,

I am trying to use VBA to set the "Access content programmatically" checkbox to true within the permissions of a file (File-> Protect Workbook -> Restrict Access -> Restricted Access)

When you go to the Permission dialogue and select "More Options", it allows you to select several checkboxes (such as "Print Content", "Access content programatically", etc. I am looking to do this automatically using VBA. However, when I try and do that manually and record a macro, the macro is blank. Is there a way to do this automatically? I've attached a screenshot of the permissions dialogue box.

Thanks!!!
 

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.
No screenshot so I'm not sure exactly what you are referring to.

However it sounds like something that is not possible to do using code for, valid, security reasons.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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