Application.AutomationSecurity property (Project)

Gets or sets a value that represents the security mode that Project uses when programmatically opening files. Read/write MsoAutomationSecurity.

Syntax

expression. AutomationSecurity

expression A variable that represents an Application object.

Remarks

The default value of the AutomationSecurity property is msoAutomationSecurityByUI. The value can be one of the following MsoAutomationSecurity constants:

Constant Description
msoAutomationSecurityByUI Uses the security setting specified on the Macro Settings tab of the Trust Center dialog box.
msoAutomationSecurityForceDisable Disables all macros in all files opened programmatically without showing any security alerts.
msoAutomationSecurityLow Enables all macros. This value is not recommended because potentially dangerous code can run.

Macro Settings tab of the Trust Center dialog box has four settings for the macro security level. The default setting is Disable all macros with notification. For more information about security settings and digital code signing, see the links on the Trust Center tab of the Project Options dialog box.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.