LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Worksheet gets update from DDE server

I am dealing with an application that gets an update from a 3rd party DDE
server. This occurs when the workbook is opened (uses workbook_open()).

The VB code in workbook_open issues a call to the DDE server. It takes a
few seconds (varies) for the results to come back. Colums B and C are
updated with approximately 1000 rows of data.

The worksheet has a chart. Besides issuing the call to the DDE server, the
VB code in workbook_open() is used to tweak the chart. However, the VB code
must wait until the results come back from the DDE server. That is where I
am having trouble. If I use MsgBox to pause execution, the DDE results come
back, I click OK, and everything works fine. If I instead use
"Application.Wait" to pause for several seconds, it appears that the DDE
updates are blocked, and so the B and C cell values are not populated with
the data that are required by the VB chart code. If I create a "do loop",
testing for the presence of the DDE data, nothing happens, so it looks like
that blocks the DDE updates too.

Does anyone know of a way of pausing a VB script, that will not block DDE
updates to a worksheet? Thanks!


 
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
Excel 2007 - Sharpoint 2003 can't update list on server Michael Price Excel Discussion (Misc queries) 3 February 26th 07 03:43 PM
Creating Worksheet Using Server Object Olivia Towery Excel Worksheet Functions 0 September 6th 05 06:00 PM
Automatically update links when server names change J Hotch Excel Worksheet Functions 1 August 3rd 05 03:50 PM
SQL Server UPDATE Database from Excel Table Fawwah Links and Linking in Excel 2 June 13th 05 08:54 AM
Creating Worksheet using Server Object Olivia Towery Excel Worksheet Functions 1 May 17th 05 06:12 PM


All times are GMT +1. The time now is 04:14 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"