Internetmanager
Technical User
I need to control Word from Access.
I have tried to use it with
Set wdApp = CreateObject("Word.Application")
but this way I couldn't use the constants of Word (like: wdPrintView).
So I have selected "Microsoft Word 11.0 Object Library" from the Preferences list.
But this didn't work too. So I have tried to use them together.
I mean that I have initialised the server with the CreateObject and later I use this instance by simply Word.ActiveDocument...
And at the end of my program I use
Word.Application.Quit
Set wdApp = Nothing
And it works. But when I want to run it twice, I got this errormessage:
The remote server machine does not exist or is unavailable (Error 462)
Why? What did I wrong?
I have tried to use it with
Set wdApp = CreateObject("Word.Application")
but this way I couldn't use the constants of Word (like: wdPrintView).
So I have selected "Microsoft Word 11.0 Object Library" from the Preferences list.
But this didn't work too. So I have tried to use them together.
I mean that I have initialised the server with the CreateObject and later I use this instance by simply Word.ActiveDocument...
And at the end of my program I use
Word.Application.Quit
Set wdApp = Nothing
And it works. But when I want to run it twice, I got this errormessage:
The remote server machine does not exist or is unavailable (Error 462)
Why? What did I wrong?