title: MsgBoxResult.Yes=restart program and MsgBoxResult.no=close program Help VBA
body: <p>I want my program to display a msgbox to the user that says "Would you like to try again" if bank=0 or 200. The user either chooses yes or no. Here's my code:</p>
  
  <pre><code>    If bank = 0 Or 200 Then
          MsgBox("Would you like to try again?", MsgBoxStyle.YesNo, vbYesNo)
          If MsgBoxResult.Yes Then
              Application.Restart()
          ElseIf MsgBoxResult.No Then
              Me.Close()
              End If
  </code></pre>
  
  <p>My issue is that when someone selects "No" the program ignores "Me.Close" and instead reboots the program. </p>
  
  <p>Help is appreciated...</p>