DisplayAlerts Property Example

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

Application.DisplayAlerts = wdAlertsAll

This example returns the current setting of the DisplayAlerts property.

temp = Application.DisplayAlerts