Excel: Calculating Only One Cell When Running MacroLast reviewed: November 2, 1994Article ID: Q27530 |
SUMMARYWhen a command macro is run in Microsoft Excel, the cells on the worksheet recalculate. To recalculate only one cell when the macro runs, set calculation to Manual and enter the following code to calculate the desired cell:
=SELECT(reference) =FORMULA(GET.FORMULA(ACTIVE.CELL()))"Reference" refers to the cell to be recalculated. For example, if you want cell B3 on your worksheet to be recalculated by the macro, enter the following in your command macro:
=SELECT(!B3) =FORMULA(GET.FORMULA(ACTIVE.CELL())) |
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |