Microsoft provides programming examples for illustration only, without warranty either
expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes
that you are familiar with the programming language being demonstrated and the
tools used to create and debug procedures. Microsoft support professionals can
help explain the functionality of a particular procedure, but they will not
modify these examples to provide added functionality or construct procedures to
meet your specific needs.
If you have limited programming experience, you may
want to contact a Microsoft Certified Partner or Microsoft Advisory Services. For more information, visit these Microsoft Web sites:
Microsoft Certified
Partners -
https://partner.microsoft.com/global/30000104Microsoft Advisory Services -
http://support.microsoft.com/gp/advisoryservice
For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMSMethod 1: Recalculate Using F2
To recalculate a single cell, follow these steps:
- Position the insertion point in the cell that you want to
recalculate.
- Press the F2 key.
- Press ENTER.
To recalculate only the cells in a single array, follow these steps:
- Select one cell in the array.
- On the Edit menu, click Go To, and then click Special.
- Click the Current array option, and then click OK.
- Press F2.
- Press CTRL+SHIFT+ENTER.
The formula in the array is re-entered, and the values returned are updated.
Method 2: Recalculate Using Replace
- Be sure that calculation is set to Manual. To do this, follow these steps:
- Click Options on the Tools menu.
- Click the Calculation tab, and then click the Manual option button.
- Click OK to accept the change.
- On the Edit menu, click Replace.
- In the Find what box, type the equal sign (=), and then in the Replace with box, type =.
- Click Replace (not Replace All).
NOTE: To recalculate a selected range rather than a single cell, click
Replace All.
Method 3: Visual Basic Code Example
To recalculate the active cell on the active worksheet, use the following
procedure:
Sub Calc()
ActiveCell.Calculate
End Sub
To recalculate a range on the active worksheet, use the following
procedure:
Sub Calc_Range()
Range("A1:D1").Calculate
End Sub