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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
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.
 
Upvote 0

Forum statistics

Threads
1,214,869
Messages
6,122,015
Members
449,060
Latest member
LinusJE

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
Back
Top