I am using Excel 2003 to create word documents. The starter word doc has codes that get replaced and I then do a save-as
When the starter document is already open, it gets corrupted when I try to open it with VB.
How can I determine if a specific word document is already open?
Here is some of the code to open it
Any advice appreciated
When the starter document is already open, it gets corrupted when I try to open it with VB.
How can I determine if a specific word document is already open?
Here is some of the code to open it
Code:
Dim oWordApp As Object, openDoc as string
Set oWordApp = CreateObject("Word.Application")
' check if already open -------------
openDoc = "C:\Temp\Start.doc
oWordApp.Documents.Open openDoc
oWordApp.Visible = True
Any advice appreciated