I cannot get Word to become visible when opening it from VB.
I am running on W2K and VB 6.0 sp4. I am also using OfficeXP. I can see Word starting in the task manager when I execute my program. However I cannot kill the task and must reboot to clear Word from the system. If I run my program in debug mode Word does become visible and the app works correctly. Here is a snippet of the code.
Dim oWord As Word.Application
Dim oDoc As Word.Document
Set oWord = CreateObject("Word.Application"
Set oDoc = oWord.Documents.Add(filename)
oWord.Visible = True
Set oWord = Nothing
Set oDoc = Nothing
Does anyone have any idea on how to make word become visible?
Thanks.
I am running on W2K and VB 6.0 sp4. I am also using OfficeXP. I can see Word starting in the task manager when I execute my program. However I cannot kill the task and must reboot to clear Word from the system. If I run my program in debug mode Word does become visible and the app works correctly. Here is a snippet of the code.
Dim oWord As Word.Application
Dim oDoc As Word.Document
Set oWord = CreateObject("Word.Application"
Set oDoc = oWord.Documents.Add(filename)
oWord.Visible = True
Set oWord = Nothing
Set oDoc = Nothing
Does anyone have any idea on how to make word become visible?
Thanks.