Bagikan melalui


Application.DisplayAlerts Property (Word)

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

Syntax

expression .DisplayAlerts

expression Required. A variable that represents an Application object.

Example

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

See Also

Concepts

Application Object

Application Object Members