Runtime error 4596 with DDEinitiate

L

Lüko Willms

I try to poke data directly into a database program via DDE from a
VBA script in Winword.

But already the DDEinitiate fails -- first Winword tells me it can't
reach the remote data, and asks if the application should be started.
A "yes" results in runtime error 4596 - can't establish link (those
error messages are translated from German by me, the original english
texts will be different).

The application in question is running.

Has anybody an idea concretely what could be wrong here? Searching
at Microsoft or Google did not turn up anything sensible.

I use MS Office 97 and Windows NT 4.0 Server.


Cheers,
L.W.
 
L

Lüko Willms

Am Wed, 18 Jun 2008 14:57:08 UTC, schrieb "Lüko Willms"
<[email protected]> auf microsoft.public.word.vba.general :

the mystery is solved:
I try to poke data directly into a database program via DDE from a
VBA script in Winword.

But already the DDEinitiate fails -- first Winword tells me it can't
reach the remote data, and asks if the application should be started.
A "yes" results in runtime error 4596 - can't establish link (those
error messages are translated from German by me, the original english
texts will be different).

The application in question is running.

But the form which was quoted as the "Topic" in the second parameter
was not opened and loaded. The target application can't open it. Later
I found out that the VBA online help for DDEinitiate speaks of "opened
documents".


Cheers,
L.W.
 

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