restrict calculation

J

JE McGimpsey

Harvey Waxman said:
Is there any way to limit calculations to a part of a sheet? Or prevent a
small area from being recalculated?

You can, sort of, using VBA.

First you'd need to set Calculation to Manual in
Preferences/Calculation, then specify a range to be calculated, e.g.:

Public Sub CalcSelection()
Selection.Calculate
End Sub

or

Public Sub CalcA1toJ10()
Range("A1:J10:).Calculate
End Sub

or

Public Sub CalcAllButB10toC30()
Intersect(ActiveSheet.UsedRange, _
Range("A:A,D:IV,B1:C9,B31:C65536")).Calculate
End Sub

You could call these from an event macro, say the Worksheet_Change event
to calculate "automatically".

The entire sheet will still be calculated if you press CMD-=, or if
Recalculate before Save is set in the preferences.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

keyboard shortcuts 2
sheet size 18
update 2
Where is my error? 7
Formula needed 2
sort question 2
Frequency question 5
DATE question 3

Top