Opening a Word Document in VB
Hello everybody.
I have a very strange problem.
I'm trying to open a Word Document in VB.
This is the code I'm using:
-----------------
Dim WrdApp as Word.Application
dim WrdDoc as Word.Document
Set WrdApp=new Word.Application
Set WrdDoc=WrdApp.Documents.Open(FileName:=thefilenameiwanttoopen)
-------------------
I tried this code on a PC, and it worked just fine.
I tried it on another PC, but it's not working.It seems that Word is catching the File somewhere because if I try then to open it from outside VB, I get a message:
"This File is Locked For Editing...." :confused:
Please Help Me.
Thank you