Application.DisplayAlerts (Word)

Returns or sets the way certain alerts and messages are handled while a macro is running. Possible return values are wdAlertsAll - All message boxes and alerts are displayed; errors are returned to the macro, wdAlertsMessageBox - Only message boxes are displayed; errors are trapped and returned to the macro, wdAlertsNone - No alerts or message boxes are displayed. If a macro encounters a message box, the default value is chosen and the macro continues.


Application.DisplayAlerts = wdAlertsAll