I have written a Visual Basic for Applications (VBA) program from within Excel. One of the things the program does is create DDE links to eSignal for a collection of symbols in the Excel spreadsheet. Then the program is designed to de several other things.
But no matter what I try, the cells with DDE links do not populate themselves with the linked data until the VBA application ends. I have tried issuing Wait commands (i.e., Application.Wait) and created various loops that basically delay the application to allow time for the cells to get populated. I have also tried all the Calculation and link refresh commands and tests, such as:
--Calculate
--Application.Calculate
--Application.CalculateFull
--Application.CalculateFullRebuild
--Workbooks(x).RefreshAll
--If Application.CalculationState - xlDone Then... (to loop into calculation procedures until all has been calculated, etc.)
Any help would be greatly appreciated
But no matter what I try, the cells with DDE links do not populate themselves with the linked data until the VBA application ends. I have tried issuing Wait commands (i.e., Application.Wait) and created various loops that basically delay the application to allow time for the cells to get populated. I have also tried all the Calculation and link refresh commands and tests, such as:
--Calculate
--Application.Calculate
--Application.CalculateFull
--Application.CalculateFullRebuild
--Workbooks(x).RefreshAll
--If Application.CalculationState - xlDone Then... (to loop into calculation procedures until all has been calculated, etc.)
Any help would be greatly appreciated
Comment