Link to home
Start Free TrialLog in
Avatar of Seamus2626
Seamus2626Flag for Ireland

asked on

Set a range to not calculate and then on pressing a button, calculate

I have a range of cells (A1:A10) in Sheet "xyz"

They have very demanding formula which i do not want to affect the rest of my spreadsheets performance.

Can (perhaps on opening the spreadsheet) the autocalc on this range be disabled and only gets enabled when a user clicks a button, so i may need a line of code to disable on opening and a line of code to put in a sub, that i can assign a button too.

Many thanks
Avatar of ChloesDad
ChloesDad
Flag of United Kingdom of Great Britain and Northern Ireland image

I don't believe that you can turn off autocalc on a range of cells, but you could put the formulae of those cells into a macro and then run the macro when a key combination is pressed.
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rgonzo1971
Rgonzo1971

@MacroShadow

with your code the problem is that if the cells inside A1:A10 are linked to ones outside A1:A10 then it will recalculate them as well
Good point. Let's see what the OP has to say, for all you know they may not be linked to cells outside the range.
Avatar of Seamus2626

ASKER

No linkage in my example, all good!

Thanks