WdAlertLevel enumeration (Word)
Specifies the way certain alerts and messages are handled while a macro is running.
Name | Value | Description |
---|---|---|
wdAlertsAll | -1 | All message boxes and alerts are displayed; errors are returned to the macro. |
wdAlertsMessageBox | -2 | Only message boxes are displayed; errors are trapped and returned to the macro. |
wdAlertsNone | 0 | No alerts or message boxes are displayed. If a macro encounters a message box, the default value is chosen and the macro continues. |
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.