Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Property DisplayAlerts As WdAlertLevel
Get
Set
'Usage
Dim instance As _Application
Dim value As WdAlertLevel
value = instance.DisplayAlerts
instance.DisplayAlerts = value
WdAlertLevel DisplayAlerts { get; set; }
Property Value
Type: Microsoft.Office.Interop.Word.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.