Change in a Cell in excel refreshes whole sheet

Kashif Bashir Bhatti 36 Reputation points
2022-12-30T16:17:02.313+00:00

Hi,
I am working on an Excel Add-in and have created some custom functions in it. Now my user has created some functions (150+ custom functions) and all of these custom functions have parameters as references to other cells in sheet. When user updates some text cell (whether referred in some function call or not) , whole sheet is refreshed and Excel shows busy in all cells having custom functions it. I understand that if a cell is referred in some custom function and it is updated, that custom function is called to show updated data, but it should not happen when user edits a cell not referred in any of the functions.

Microsoft 365 and Office | Development | Other
{count} votes

1 answer

Sort by: Most helpful
  1. lindalu-MSFT 161 Reputation points Microsoft Employee Moderator
    2022-12-31T00:01:06.137+00:00

    Hi @Kashif Bashir Bhatti Did you try changing the calculation mode from automatic to manual? That should prevent the entire sheet from recalculating when you update a cell.
    On the Formulas ribbon, change from Automatic to Manual:
    275098-image.png

    This will only calculate when you explicitly request:
    Choose Formulas > Calculate Now (shortcuty key F9) to calculate all open workbooks.
    Choose Formulas > Calculate Sheet (shortcut key Shift + F9) to calculate only the active sheet.

    You can also set this in File > Options. In the Excel Options, choose Formulas and change the Calculation options.

    Linda


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.