Cube Refresh During Macro

DamageZ

New Member
Joined
Aug 20, 2010
Messages
25
Hi All,

I've got an issue where I'm trying to get sales from our Sales Cube & Stock Cube to automatically update. Using the CUBEMEMBER & CUBEVALUE formulas I can reproduce the original Pivot table and it will fetch the data.

My problem is as follows. The CUBEVALUE & CUBEMEMBER formulas will not update until the macro has stopped running. As I want the macro to keep going and move the data to another sheet, this is causing a problem.

My only solution so far is to end the macro, wait till the update of data is complete, then run a second macro with the data moving in it.

I've tried using Application.Wait & Sleep to no effect. The data still wont update until the macro has finished.

I've also tried to turn off Background Updating on the data connections, but for a reason escaping me, the option is greyed out.

I'm currently using Excel 2010 on Vista.

Thanks in advance for your help!
Adam.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,215,873
Messages
6,127,459
Members
449,383
Latest member
DonnaRisso

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