Trust Center Settings check within VBA

moogthemoog

Board Regular
Joined
Nov 17, 2004
Messages
51
Hi

I have VBA that will save a worksheet as an .xlsm, but this will cause problems on those users who have not enabled Macros in their Trust Center settings.

My thought was to have an If..Then statement so that the VBA could detect the status of the Trust Center macro settings, and save as .xlsx if macros are disabled or .xlsm if enabled.

Is there a way of identifying this status within VBA?

Thanks
Jon
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
This may be a illogical post, as presumably if the macros are disabled, the VBA won't run in the first place! Apologies if so.
 
Upvote 0

Forum statistics

Threads
1,216,563
Messages
6,131,423
Members
449,652
Latest member
ylsteve

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