Macros failing due to failure to refresh formulas

peftypefty

New Member
Joined
Aug 24, 2005
Messages
5
I have several macros which have run fine for months but have suddenly stopped functioning correctly. By stepping through them I have found that the problems always crop up due to Excel's failure to refresh cells containing formulas. If this refresh failure happens in the middle of a macro, I think it's easy to see how it could screw up the functioning of the rest of the macro.

My question: Aside from inserting a "Save" command at every other line of code in the macro, is there any way in VBA to force Excel to refresh formula values across the board? And more broadly, is there some parameter in Excel or in Windows that I can change in order to encourage Excel to do a better job refreshing on a regular basis?

Do I simply need more RAM?

Help would be greatly appreciated.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Have you checked the calcuation setting for XL? It appears someone changed it to something other than automatic. Check Tools | Options... | Calculation tab.
 
Upvote 0

Forum statistics

Threads
1,203,046
Messages
6,053,192
Members
444,644
Latest member
keepontruckinc4

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