Table of contents
TOC
折叠目录
展开目录

MsgBox 常量MsgBox Constants

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

下列常量可以实际值替换代码中任意位置使用:The following constants can be used anywhere in your code in place of the actual values:

MsgBox 参数MsgBox Arguments

常量ConstantValue说明Description
vbOKOnlyvbOKOnly00只有确定按钮 (默认值)OK button only (default)
vbOKCancelvbOKCancel11确定取消按钮OK and Cancel buttons
vbAbortRetryIgnorevbAbortRetryIgnore22中止重试,和忽略按钮Abort, Retry, and Ignore buttons
vbYesNoCancelvbYesNoCancel33取消按钮Yes, No, and Cancel buttons
vbYesNovbYesNo44按钮Yes and No buttons
vbRetryCancelvbRetryCancel55重试取消按钮Retry and Cancel buttons
vbCriticalvbCritical1616严重消息Critical message
vbQuestionvbQuestion3232警告查询Warning query
vbExclamationvbExclamation4848警告消息Warning message
vbInformationvbInformation6464信息消息Information message
vbDefaultButton1vbDefaultButton100第一个按钮是默认按钮(默认)First button is default (default)
vbDefaultButton2vbDefaultButton2256256第二个按钮是默认按钮Second button is default
vbDefaultButton3vbDefaultButton3512512第三个按钮是默认按钮Third button is default
vbDefaultButton4vbDefaultButton4768768第四个按钮是默认按钮Fourth button is default
vbApplicationModalvbApplicationModal00应用程序模式消息框(默认)Application modal message box (default)
vbSystemModalvbSystemModal40964096系统模式消息框System modal message box
vbMsgBoxHelpButtonvbMsgBoxHelpButton1638416384向消息框添加帮助按钮Adds Help button to the message box
VbMsgBoxSetForegroundVbMsgBoxSetForeground6553665536指定消息框窗口作为前台窗口Specifies the message box window as the foreground window
vbMsgBoxRightvbMsgBoxRight524288524288文本右对齐Text is right aligned
vbMsgBoxRtlReadingvbMsgBoxRtlReading10485761048576指定文本在 Hebrew 和 Arabic 系统上应显示为从右到左读取Specifies text should appear as right-to-left reading on Hebrew and Arabic systems

MsgBox 返回值MsgBox Return Values

常量ConstantValue说明Description
vbOKvbOK11按下确定按钮OK button pressed
vbCancelvbCancel22取消按钮Cancel button pressed
vbAbortvbAbort33中止按钮已按下Abort button pressed
vbRetryvbRetry44重试按钮已按下Retry button pressed
vbIgnorevbIgnore55忽略按钮Ignore button pressed
vbYesvbYes66按钮已按下Yes button pressed
vbNovbNo77按下按钮No button pressed
© 2018 Microsoft