title: Excel Window & UserForm Minimize and Maximize Functions
body: <p>I currently have a userform open on top of an excel instance and it is set so you can't interact with anything except for the userform. Since there is no way to minimize this program, I created a 'Minimize' button on the userform that, when clicked, hides the userform and shrinks the excel window as expected. </p>
  
  <p>However, when I click on the minimized excel application to restore the window, I would like both the userform to appear again and the excel window appear behind it as before (right now only the excel window appears).</p>
  
  <p>Is there any function or trigger I can listen for which will allow me to show my userform again when the excel instance is clicked and restored? This is how I am currently minimizing everything:</p>
  
  <pre><code>Private Sub CommandButton15_Click()
  Me.Hide
  Application.WindowState = xlMinimized
  End Sub
  </code></pre>