Application.AutomationSecurity Property

Project Developer Reference

Returns or sets an MsoAutomationSecurity constant that represents the security mode Project uses when programmatically opening files. This property is automatically set to msoAutomationSecurityLow when the application is started.

Syntax

expression.AutomationSecurity

expression   A variable that represents an Application object.

Remarks

Can be one of the following MsoAutomationSecurity constants:

Constant Description
msoAutomationSecurityByUI Uses the security setting specified in the Security dialog box.
msoAutomationSecurityForceDisable Disables all macros in all files opened programmatically without showing any security alerts.
msoAutomationSecurityLow Enables all macros. This is the default value when the application is started.

The Security dialog box includes the new Very High security level. For more information on security settings and digital code signing, see Security Notes for Microsoft Office Solution Developers in the Microsoft Office Visual Basic Reference.

See Also