Hi, I was wondering how you could get a message box with a yes and no option to work. I know how to get the message box to come up, just don't understand how to make it so if they click no, then nothing happens and if they click yes then it will close.

Private Sub mnuexit_Click()

msgbox "Are you sure you want to quit?", vbyesno
End
End Sub


With that code if you click no or yes it will close both times. Wondering how to make it so if you hit no nothing happens.

Thanks