Macro steps overrun by server running very fast

03aviator

New Member
Joined
May 31, 2011
Messages
17
Has anyone encountered a situation where when running a macro in Excel (Office 2010) on a fast server, the steps in the macro are rushed through so that the file cannot finish re-calculating before the macro moves to the next step causing errors in my data. I have tried putting a puase command in the macro right after the turning on automatic calculation again, but this does nothing for my problem. I have tried putting the following steps into a separate macro that is called at the end of the calculation abeing turned back on and it still doesn't work. This is happening in an Excel file that is 28,406 KB in size with many complicated formulas in it.

Any suggestions would be greatly appreciated on how to stop the macro from proceeding until the recalculation is completed.

Thanks all.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Would it be possible to create an calcultated field that gets a specific valua at the end of the calculation?
You good then create a look that looks to that field until it has that value and then run the next macro.
something like:....
Code:
cells(1,1).value="calculating"  'calculation executed by other macro
do
if cells(1,1).value="done" then
do_macro
cells(1,1).value="oke"
end if
loop until cells(1,1).value="oke"
 
Upvote 0

Forum statistics

Threads
1,203,115
Messages
6,053,593
Members
444,674
Latest member
DWriter9

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