title: Excel VBA ActiveWindow.Visible hiding the wrong workbook
body: <p>I want to open a workbook (WB1) and then as it's opened, another workbook (WB2) is opened.  I want WB2 hidden.  </p>
  
  <pre><code>Private Sub Workbook_Open()
  
  Application.ScreenUpdating = False
  Workbooks.Open Filename:="C:\WB2.xlsm"
  ActiveWindow.Visible = False
  
  End Sub
  </code></pre>
  
  <p>This is what I have so far and what it does is hide BOTH workbooks.  I want WB1 to remain on top and visible.  </p>
  
  <p>Thank you!  Josh</p>