Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi everybody,
I have a problem making sure all the formulas in the spreadsheet recalculate, when recalc is called from within a macro. I have a complicated spreadsheet model that takes a second or two to recalculate. I run a macro that: 1. Sets up parameters 2. Forces recalc 3. Grabs the output 4. Cycles back to step 1 with different parameters, etc. My code looks something like this: For j = pageFirst To pageLast Step pageStep <set up parameters of the j-th scenario Application.CalculateFull <save the output, which is just a rectangular range in one of the tabs Next The problem is, sometimes Excel seems to grab the output before a complete recalc is done. So the formulas are only partially updated when the output is saved. This happens pretty randomly, but also frequently enough (once in a 1,000 loops or so). Why is this happening? Is there any way to make ABSOLUTELY sure ALL formulas have been recalc'd before proceeding to the output? Thanks a lot! Tom |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2000 Problem | Excel Discussion (Misc queries) | |||
PROBLEM:How to squeeze 2 Page sized Chart in Excel 2000 & embed in Word 2000 and print from Word to fit one page ??? | Excel Discussion (Misc queries) | |||
PROBLEM:How to squeeze 2 Page sized Chart in Excel 2000 & embed in Word 2000 and print from Word to fit one page ??? | New Users to Excel | |||
problem excel 2000 | Excel Programming | |||
UDF recalc problem between sheets | Excel Programming |