MsoAutomationSecurity Enumeration

Specifies the security mode an application uses when programmatically opening files.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

public enum MsoAutomationSecurity

Member nameDescription
msoAutomationSecurityLowEnables all macros. This is the default value when the application is started.
msoAutomationSecurityByUIUses the security setting specified in the Security dialog box.
msoAutomationSecurityForceDisableDisables all macros in all files opened programmatically, without showing any security alerts.