_Application.DisplayAlerts Property

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

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

WdAlertLevel DisplayAlerts { get; set; }

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.

Community Additions

ADD
Show: