Export (0) Print
Expand All
Expand Minimize

Application.DisplayAlerts Property (Word)

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

expression .DisplayAlerts

expression Required. A variable that represents an Application object.

This example sets Word to display all alerts and message boxes when it is running macros.

Application.DisplayAlerts = wdAlertsAll

This example returns the current setting of the DisplayAlerts property.

Dim lngTemp As Long 
lngTemp = Application.DisplayAlerts
© 2014 Microsoft