用msgbox函的话不好弄,可以自己做个窗体,直接禁用控制按钮。然后用模式方法调用窗口:form1.show vbModle
vbYesNo的都行吧MsgBox "测试", vbYesNo + vbExclamationMsgBox "测试", vbYesNo + vbInformationMsgBox "测试", vbYesNo + vbQuestionMsgBox "测试", vbYesNo + vbCriticalvbAbortRetryIgnore的也可以