WdAlertLevel 枚举 (Word)WdAlertLevel enumeration (Word)

指定运行宏时产生的一些警告和消息的处理方式。Specifies the way certain alerts and messages are handled while a macro is running.

名称Name Value 说明Description
wdAlertsAllwdAlertsAll -1-1 显示所有的消息框和警告,并将错误返回宏。All message boxes and alerts are displayed; errors are returned to the macro.
wdAlertsMessageBoxwdAlertsMessageBox -2-2 仅显示消息框,同时捕获错误并将其返回宏。Only message boxes are displayed; errors are trapped and returned to the macro.
wdAlertsNonewdAlertsNone 00 不显示任何警告或消息框。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

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.