Check to see if a Word Doc is open
Posted on 2006-10-26
I run a statistic program that calculates data. Then after it executes, it places all the data into a Word doc. I have the following code to open a Word Doc in VB.
Dim myWOrd As New Word.Application
Dim myDOc As Word.Document
Dim myRange As Range
Dim Para1 As Word.Paragraph
Set myDOc = myWOrd.Documents.Add()
'Then I add my stuff to the doc here
However when I want to add again to the same doc after I execute the procedure, how do I check to see if the Word Doc is open rather then open a new doc?