_Application.AutomationSecurity プロパティ

定義

プログラムによってファイルをMsoAutomationSecurity開くときに Microsoft Wordが使用するセキュリティ設定を表す定数を設定または返します。

public:
 property Microsoft::Office::Core::MsoAutomationSecurity AutomationSecurity { Microsoft::Office::Core::MsoAutomationSecurity get(); void set(Microsoft::Office::Core::MsoAutomationSecurity value); };
public Microsoft.Office.Core.MsoAutomationSecurity AutomationSecurity { get; set; }
member this.AutomationSecurity : Microsoft.Office.Core.MsoAutomationSecurity with get, set
Public Property AutomationSecurity As MsoAutomationSecurity

プロパティ値

注釈

AutomationSecurity プロパティの既定の設定は、 msoAutomationSecurityLow です。 そのため、既定の設定に依存するユーザーのセキュリティ設定の変更やソリューションの中断を回避するには、プログラムによってファイルを開いた後、このプロパティを元の設定に戻すよう注意する必要があります。

False に設定ScreenUpdatingしてもアラートには影響せず、セキュリティ警告には影響しません。 この設定は DisplayAlerts セキュリティ警告には適用されません。 たとえば、ユーザーが DisplayAlertsを FalseAutomationSecuritymsoAutomationSecurityByUI に設定した場合、ユーザーが中程度のセキュリティ レベルにあるときに、マクロの実行中にセキュリティ警告が表示されます。 これにより、開いているファイルが成功した場合でもセキュリティ警告を表示しながら、マクロでファイルを開くエラーをトラップできます。

適用対象