#1   Report Post  
Posted to microsoft.public.excel.programming
jsp jsp is offline
external usenet poster
 
Posts: 2
Default DDE Links

I am having trouble with my DDE Links. After several iterations in a Excel
VBA (MACRO) program, the DDE does not update. It seems to be worst in XP Pro
with 2007 Office. The code works reasonabely well with Vista (unbelievabele
I know). It is recieving data from InterbankFX. This is the code I'm using:

Sub ReadData(Bid(), Offer(), c, Res())

channel = DDEInitiate("MT", "BID")
Result = DDERequest(channel, "EURUSD")
Cells(15, 1) = Result

channel = DDEInitiate("MT", "ASK")
Result = DDERequest(channel, "EURUSD")
Cells(15, 2) = Result

Do

channel = DDEInitiate("MT", "BID")
Result = DDERequest(channel, "EURUSD")
Cells(16, 1) = Result

channel = DDEInitiate("MT", "ASK")
Result = DDERequest(channel, "EURUSD")
Cells(16, 2) = Result

Bid(c) = Cells(16, 1)
Offer(c) = Cells(16, 2)

Loop Until Cells(16, 2) < Cells(15, 2)

Thank!
--
JSP
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow opening links between workbooks with links created in 2003 Russell Excel Discussion (Misc queries) 0 December 14th 09 02:59 PM
Update links box gives Continue or Edit Links dialog KarenF Excel Discussion (Misc queries) 0 May 18th 07 01:17 PM
Edit Links: Changing links on a protected worksheet Halibut68 Excel Discussion (Misc queries) 0 April 28th 06 11:03 AM
Relative Links becoming Absolute Links? GB Excel Programming 0 October 3rd 05 07:05 PM
EXCEL - LINKS cannot easily get list of all links & names in book Tuba Joe Excel Worksheet Functions 1 September 29th 05 10:33 PM


All times are GMT +1. The time now is 08:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"