DDE LINKS AUTOMATIC UPDATE

123456

New Member
Joined
Dec 9, 2005
Messages
5
Can anyone advise me how to write a code that allows dde links to update before moving into the next step.
For example

I would like to open the file....wait for the dde links to update and once the values have updated , copy and paste the values over to a new sheet as values only....I have tried the wait method but the links doesn't update while it is waiting
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

HalfAce

MrExcel MVP
Joined
Apr 6, 2003
Messages
9,456
Hello 123456, welcome to the board.
Instead of the Application.Wait method you can try putting all the code you want to execute after the DDE links finish updating into a seperate sub and using the Application.OnTime method.
(ie.)
Code:
Private Sub Workbook_Open()
Application.OnTime Now + TimeSerial(0, 0, 2), "YourMacroNameHere"
End Sub

This will allow 2 seconds (or make it as long as you like) for them to update/calculate before continuing, whereas the App.Wait does not.

Hope it helps.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,057
Messages
5,835,163
Members
430,343
Latest member
t0m_c

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top