Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 - Sharpoint 2003 can't update list on server | Excel Discussion (Misc queries) | |||
Creating Worksheet Using Server Object | Excel Worksheet Functions | |||
Automatically update links when server names change | Excel Worksheet Functions | |||
SQL Server UPDATE Database from Excel Table | Links and Linking in Excel | |||
Creating Worksheet using Server Object | Excel Worksheet Functions |