Stop multiple instances of WORD opening

J

JM7

I am calling the lines below from ACCESS.

Everytime this function is called I get new instances of WORD 2002 opening.
Set objword = CreateObject("Word.Application")

Set wrddoc = objword.Documents.Open("d:\temp\test.doc")

I can't use
Set objword = GetObject("Word.Application")
because it results in an error even if WORD is running

Thanks in advance
 
H

Helmut Weber

Hi,

shouldn't that be:

GetObject(, "Word.application")

Leading comma!

Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000
 

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