Count (and activate) opened Word Documents
<p>This is odd - I swear I was just using this code successfully, but not it's not working:</p>

<pre><code>Sub t()
Dim wdApp As Object
Set wdApp = GetObject(, "Word.Application")
Debug.Print wdApp.Documents.Count
End Sub
</code></pre>

<p>From Excel, it should simply realize there is a Word document open, and return <code>1</code>.  However, I'm getting <code>0</code> for some reason.  I've also tried <code>Set wdApp = CreateObject("Word.Application").</code> </p>

<p>What might I be overlooking? There are no errors thrown, it's just not showing I have a document open.</p>

<p>(Note: I got the idea from <a href="https://stackoverflow.com/questions/15005723/activate-word-window-from-excel-with-vba">this thread</a>, as I want to copy an Excel range and paste into a Word doc.)</p>