msgbox is pretty powerful - use vb constants and you cant go too wrong
so you get
if msgbox("my question",vbyesno) = vbno then
'code for answering no goes here
else
'code for answering yes goes here
end if
you can also use vbokcancel, to give buttons called not surprisingly ok, or cancel, if you want them instead of yes or no
if msgbox("my question",vbokcancel) = vbno then
you can also change the default button, so that
if msgbox("my question",vbyesno+vbdefaultbutton2) = vbno then
will highlight no, as the default rather than yes.
---------
You can also add a symbol in the msgbox by adding vbquestion, vbexclamation or vbinformation
eg
if msgbox("my question",vbyesno+vbdefaultbutton2+vbquestion) = vbno then
-------
there are numerous other switches - the only thing you can't do in a msgbox is add your own named buttons, which certainly would be helpful at times.