_Application.DisplayAlerts Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.