Running word from VB6

S

Steven

Hi,

I want to be able to open word and modify the toolbars
using vb6 code and load a document. I then want the code
to wait until the document has been closed before
proceeding.

I can modify the toolbars but i'm not sure how to open
word so that vb6 will wait for it to be closed before
continuing.

many thanks in advance.

Steven
 
G

Guest

I have a VB6 application which opens word 2k and needs to
know when it has quit.

I need a

do while word is running
do events
loop

sort of thing

Steven
 
J

Jonathan West

I have a VB6 application which opens word 2k and needs to
know when it has quit.

I need a

do while word is running
do events
loop

sort of thing

Steven

Declare the Word.Application object variable using the WithEvents keyword.
You can then write an event procedure for the Quit event of the Word
application object.

Events generated by Word work just like the events generated by controls in
forms.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top