title: VBA: Run time error '91'?
body: <p>All I'm trying to do here is save a reference to the currently active window, but it doesn't seem to be working.  It gives me a run time error on the last line.</p>
  
  <pre><code>Dim SourceWindow As Window, QACheckWindow As Window
  SourceWindow = ActiveWindow
  </code></pre>
  
  <p>I'm not exactly sure why.  Isn't <code>ActiveWindow</code> supposed to return the currently active window?  If not, how can I make a reference to it?</p>
  
  <p>EDIT: The above is right at the beginning of my function, so all there is before it is <code>Sub FuncName()</code></p>