title: In vbs/hta how do I tell if I reach the end of a word document?
body: <p>I am currently creating a large script to automate a Microsoft word document to pull out tables and put them into a new document. But I need to know when I reach the end of the document so I can move on to the next document.</p>
  
  <pre><code>Set objWord         = CreateObject("Word.Application")
  Set objNewDoc       = objWord.Documents.Add()
  Set objNewSelection = objWord.Selection
  Set objDoc = objWord.Documents.Open( C:/Users/blahdoc.doc )
  Set objSelection = objWord.Selection
  </code></pre>
  
  <p>This isn't the script but its how I defined and opened the documents for reading. I will happily insert more details if and when there needed.</p>
  
  <p>I did look around for similar questions but didn't find any that apply. If you do sorry ahead of time ;)</p>