_Application.DisplayAlerts Property

Definition

Returns or sets the way certain alerts and messages are handled while a macro is running.

public:
 property Microsoft::Office::Interop::Word::WdAlertLevel DisplayAlerts { Microsoft::Office::Interop::Word::WdAlertLevel get(); void set(Microsoft::Office::Interop::Word::WdAlertLevel value); };
public Microsoft.Office.Interop.Word.WdAlertLevel DisplayAlerts { get; set; }
member this.DisplayAlerts : Microsoft.Office.Interop.Word.WdAlertLevel with get, set
Public Property DisplayAlerts As WdAlertLevel

Property Value

WdAlertLevel

Remarks

If you set this property to wdAlertsNone or wdAlertsMessageBox, Microsoft Word doesn't set it back to wdAlertsAll when execution stops. You should write your code in such a way that it always sets the DisplayAlerts property back to wdAlertsAll when it stops running.

Applies to