
if you have a message box like do you want to save changes you get yes , no and cancel but when you write a messagebox like that.
if msgbox("Do you want to save changes",vbyesnocancel)=vbyes then
' saving document
Else
' could be EITHER CANCEL OR NO
End if
can you see the problem?