Private Sub Command1_Click()
MsgBox "", vbOKCancel, "退出"
If vbOKCancel = vbOK Then Print "确定" Else Print "取消" End If
End Sub
[此贴子已经被作者于2005-9-20 15:16:14编辑过]
Dim rVal As VbMsgBoxResult
rVal = MsgBox("", vbOKCancel, "退出") If rVal = vbOK Then Print "确定" Else Print "取消" End If