Public Sub catchResponse()
Dim iResponse As Integer
iResponse = MsgBox("Please Respond", vbYesNo, "My Response")
MsgBox "My Resonse Is: " & iResponse, vbInformation, "Resonse"
End Sub
"jose luis" wrote in message
...
Hi All,
How could i catch the result of a MsgBox and derive actions from the
user decision? Any help welcome!.
Thanks in advance
jose luis
P.D. Here is what i though will do the trick. I was wrong.
GuardarAntes()
MsgBox "Save Changes?", vbYesNoCancel, "Save?"
If VbMsgBoxResult.vbYes = 6 Then
MsgBox "Yes"
End If
If VbMsgBoxResult.vbNo = 7 Then
MsgBox "No"
End If
End Sub
--
jose luis
------------------------------------------------------------------------
jose luis's Profile:
http://www.excelforum.com/member.php...o&userid=13312
View this thread: http://www.excelforum.com/showthread...hreadid=273940