DDEPoke Help

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Eric D
Junior Coder
Posts: 27
Joined: Thu Sep 19, 2002 6:08 pm
Location: Orange County, CA

DDEPoke Help

Post by Eric D » Wed Jan 22, 2003 7:39 pm

Am I doing this right? I cannot seem to get this to work.

I want to populate 2 cells and extract the result of a calculation out of the third cell. I am getting a DDE_SERVICE_INVALID error.

Thanks in advance,



DDEPoke>Excel,c:\data\eric.xls,R4C3,105
DDEPoke>Excel,c:\data\eric.xls,R4C4,500
DDERequest>Excel,c:\data\eric.xls,R4C5,Answer,60
MessageModal>%Answer%


User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Jan 22, 2003 11:57 pm

Is Excel running? The xls file would need to be open.
MJT Net Support
[email protected]

Eric D
Junior Coder
Posts: 27
Joined: Thu Sep 19, 2002 6:08 pm
Location: Orange County, CA

Post by Eric D » Thu Jan 23, 2003 12:14 am

:oops: Slapping Self


Thanks... I did not know you had to have it running.

Eric

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Jan 23, 2003 12:15 am

Hi,

Yeh - otherwise the server does not exist. You wanna do:

ExecuteFile>c:\data\eric.xls
WaitWindowOpen>eric.xls*
DDEPoke>Excel,c:\data\eric.xls,R4C3,105
DDEPoke>Excel,c:\data\eric.xls,R4C4,500
DDERequest>Excel,c:\data\eric.xls,R4C5,Answer,60
MessageModal>%Answer%

or something similar ...
MJT Net Support
[email protected]

EUGEBEL

Using DDE with Excel

Post by EUGEBEL » Wed Jan 29, 2003 6:52 pm

support wrote:Hi,

Yeh - otherwise the server does not exist. You wanna do:

ExecuteFile>c:\data\eric.xls
WaitWindowOpen>eric.xls*
DDEPoke>Excel,c:\data\eric.xls,R4C3,105
DDEPoke>Excel,c:\data\eric.xls,R4C4,500
DDERequest>Excel,c:\data\eric.xls,R4C5,Answer,60
MessageModal>%Answer%

or something similar ...
If you use the french release of Excel, this code is running. Just change the Row (R) by the Ligne (L)



ExecuteFile>c:\ewdatas.xls
Wait>10
DDEPoke>Excel,c:\ewdatas.xls,L4C3,105
DDEPoke>Excel,c:\ewdatas.xls,L4C4,500
DDERequest>Excel,c:\ewdatas.xls,L4C5,Answer,10
MessageModal>%Answer%



Regards
Jean-Michel

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts