I'm having some trouble with a workbook that I've set to only calculate when the user clicks a button to force a total calculation with an
Application.CalculateFullRebuild
line. The trouble is *I think* that the code continues to progress while the sheet is rebuilding/recalculating, so it's conceivable that the code arrives at a point where it's manipulates data/ranges *before* they've finished recalculating. This is bad.
Is there a way to make the code wait until the application is finished calculating before resuming the next bit of code? Alternately, is there a way to start recalculating, pause for x seconds, and then continue? This is a new area of Excel/VBA for me so any help is appreciated (I'm still learning). Thanks!
- Bill
Application.CalculateFullRebuild
line. The trouble is *I think* that the code continues to progress while the sheet is rebuilding/recalculating, so it's conceivable that the code arrives at a point where it's manipulates data/ranges *before* they've finished recalculating. This is bad.
Is there a way to make the code wait until the application is finished calculating before resuming the next bit of code? Alternately, is there a way to start recalculating, pause for x seconds, and then continue? This is a new area of Excel/VBA for me so any help is appreciated (I'm still learning). Thanks!
- Bill