capture DDE update value in VBA macro

C

chs245

Hi
I have a dde connection to a server established via the following
code:
channelNumber = Application.DDEInitiate( _
app:="BDDE", _
topic:="HIST")
returnList = Application.DDERequest(channelNumber, item$)
For i = LBound(returnList) To UBound(returnList)
Worksheets("Sheet1").Cells(i, 1).Formula = returnList(i)
Next i
Application.DDETerminate channelNumber

The DDE server first sends the value "<WFR>" to tell the user that it
is working on the request, and once the data is available, it sends it
a couple of seconds later. The problem is that the macro only captures
the value <WFR>, and not the data that follows a couple of seconds
later.

Is there a way to retrieve this late-incoming data via the macro ?

Many thanks in advance,

Oliver
 
O

O r

If i send the request twice, i will still only get <WFR> as my initial
answer. it would be nice to kind of "listen" to a dde connection from
within an excel macro.
 
C

chs245

Thanks Tom,

seems to me that most of the developer community has given-up on DDE
years ago. The software found on your link seems to solve the problem
though.

Best regards,

OLiver
 

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