title: How to close Visual Basic Application using vba code
body: <p>Is there any way to close the Visual Basic Application only? i tried the Apllication.Quit that will close Visual Basic Application and the Excel too. </p>
  
  <p>How to close the Visual Basic Application only?</p>
  
  <p>Below is my code.</p>
  
  <pre><code>Private Sub UserForm_Activate()
  Application.Quit
  End Sub
  </code></pre>
  
  <p>Thanks</p>