Giving time for Excel links to update

worldcup2010

New Member
Joined
Sep 25, 2009
Messages
2
Hi,

I have a word document with an excel graph link. When I ask to refresh the data in word the excel data doesn't refresh properly. I think this must be because excel graph doesn't have time to refresh.

When I open the excel file separately it take a couple seconds for the graph to update. The data it is linked to is in the same file and consists of a few bloomberg cell equations that take a little time to update.

I've been trying various combinations of Application.Wait and Application.Ontime at different stages (eg at Workbook_SheetCalculate, beforeclose,...) without success

Any suggestions/solutions?

Thanks,

Pat
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I found a solution to this problem. I have a macro that opens all the excel files one by one and then closes all of them after a delay. This allows the workbooks enough time to retrieve the data from bloomberg:

Application.OnTime Now + TimeValue("00:00:07"), "CloseAndSaveOpenWorkbooks"

also before closing the excel files I set the calculation method to manual:

Wkb.Application.Calculation = xlCalculationManual

so that any link to the file will not recalculate anything, only the macro does data retrieval and calculation when it is run.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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