WdAlertLevel Enumeration
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

WdAlertLevel Enumeration

Specifies the way certain alerts and messages are handled while a macro is running.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

public enum WdAlertLevel

Member nameDescription
wdAlertsNoneNo alerts or message boxes are displayed. If a macro encounters a message box, the default value is chosen and the macro continues.
wdAlertsMessageBoxOnly message boxes are displayed; errors are trapped and returned to the macro.
wdAlertsAllAll message boxes and alerts are displayed; errors are returned to the macro.
© 2016 Microsoft