change automationsecurity settings

Add-in Express™ Support Service
That's what is more important than anything else

change automationsecurity settings
 
Bart Van Bossche


Guest


Hi,

When we install our programs at our new clients, we have to open Word on each computer and change several settings.
We created an addin for word that has several functions linked to our program, but when Word is launched, our addin will also check some settings in Word and change those to our settings (like the workgroup templates directory).

Now our employees have to open Word on each computer just to go to the trust center and change the automationsecurity setting to enable all macros (msoAutomationSecurityLow).
You can change this setting in VBA using Application.AutomationSecurity.
How can we do this from our addin? I can find that property in the WordApp object...

Thanks in advance!

Sincerely,
Bart
Posted 28 Aug, 2014 03:13:23 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello Bart,

That property is available for Excel projects only, see http://msdn.microsoft.com/en-us/library/office/ff837822%28v=office.15%29.aspx. It doesn't exist on the Word object model or any other object model in Office.

I suggest that you google for changing this setting by changing Office settings in the registry. See e.g. http://social.technet.microsoft.com/Forums/office/en-US/03234330-9e23-4922-9cee-9359ff08302d/registry-setting-for-changing-macro-security-to-enable-all-macros?forum=officesetupdeployprevious. These settings may depend on the Office version used.


Andrei Smolin
Add-in Express Team Leader
Posted 28 Aug, 2014 10:42:20 Top