title: How to enable macro setting in trust center with a code
body: <p>I have a macro in workbook open option to check whether the user is authorized to access the file. However, if the macro setting in trust center for the user is disabled with notification (which is the default setting), he can access the file. What do I need to do to force enable the code to execute irrespective of the macro setting? Once closed, I want the setting to reset to default.</p>
  
  <p>I could not found any good solution apart from enabling macro setting for every user.</p>