I have created a macro-enabled Excel workbook that requires users to have "Trust access to the VBA project object model" enabled in the Excel Macro Security settings.
I forgot I had already done this, and my coworker got stuck on (not responding) when trying to run the macro.
This window can also be brought up with this code:
Application.CommandBars.ExecuteMso("MacroSecurity")
Can I programmatically determine the value of this checkbox with VBA? I'd like to be able to check whether a user has this feature enabled before allowing them to run the macro that could potentially hang up their machine.