locked
Programatically set Macro settings RRS feed

  • Question

  • Please let me know, if its possible to set the macro security level programatically using VSTO. I need to set the options available under Word Options > Trust Center > Macro Settings
    Monday, April 20, 2009 11:25 AM

Answers

  • It can be done via Windows Registry. However, providing the required code is not ethical correct and can violate the terms for this forum.

    The best option is to use a digital certificate which can be trusted and as such can be run even if the highest level is set.



    Kind regards, Dennis (http://xldennis.wordpress.com/)
    • Proposed as answer by Cindy Meister MVP Tuesday, April 21, 2009 7:44 AM
    • Marked as answer by Tim Li Monday, April 27, 2009 2:21 AM
    Monday, April 20, 2009 2:14 PM