VB Word control
Posted on 2002-03-21
Fom VB I launch a word document and run a macro within that document. The macro can take some time, how do I give my VB application back control after I launch the word document. The application doesn't really care if the word macro completes or fails. Currently, the VB app has to wait for word to complete before control can be given.
Set objNewDoc = oWord.Documents.Add(WORKING_DIR & _ "\templates\" & s_reportlocation)
oWord.Visible = True
'Kill all of the word related objects
Set objNewDoc = Nothing
Set oWord = Nothing