Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB's interface with MS Word

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
problem 1:
If I have to open an instance of MS word from VB with events. i am doing it using 'withevents' keyword. Now after doing this if i try to create an instance of word.application (which i need to do) using 'new' keyword, i get an error 'type mismatch'. I have also tried doing the same by declaring another variable of type word.application using new keyword and then assigning it to the one which is with events. but still it does not work.

problem 2:
if I have an instance of MSword already open while I run an application which opens and closes the MS word,I receive an error which says that the document I want to open is locked for editing. Though the same thing works fine if no instance of MS word is open while running the same problem.

please help me out with these problems at the earliest. I shall be obliged.
thanks
koolz.
kulvinderk@niit.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top