Microsoft KB Archive/79587

From BetaArchive Wiki


XL2/XL3: Function Macros Don't Update When Macro Code Is Changed

Last reviewed: February 2, 1998
Article ID: Q79587

The information in this article applies to:

  • Microsoft Excel for Windows, versions 2.1 and 3.0
  • Microsoft Excel for the Macintosh, versions 2.2 and 3.0
  • Microsoft Excel for OS/2, versions 2.2 and 3.0

SUMMARY

Worksheet values returned by custom function macros in the versions of Microsoft Excel listed above are not automatically updated when you make changes to the function macro code.

MORE INFORMATION

Function macros are read into memory as each equation calling the macro is entered into a spreadsheet cell. To update cells that call a function macro that has been edited, you must reenter the equations in those cells.

To update a function macro in a single cell, follow these steps:

  1. Select the cell you want to update.
  2. In Microsoft Excel for the Macintosh, press COMMAND+U. In Microsoft Excel for Windows or OS/2, press F2.
  3. Press RETURN or ENTER.

The formula will be entered on the spreadsheet and the function macro will be recalculated. To recalculate all cells that refer to a function macro, follow these steps:

  1. Select the range of cells containing references to the function macro.
  2. On the Formula menu, click Replace.
  3. Enter the name of the function macro in the "Find What:" field.
  4. Enter the name of the function macro in the "Replace With:" field.
  5. Click Replace All.

This will reenter all formulas that contain a reference to the edited function macro and update spreadsheet values accordingly.

REFERENCES

"Microsoft Excel User's Guide," version 3.0, pages 572-574


Additional query words: 2.1 2.10 2.2 2.20 2.21 3.0 3.00 XL3 XL2 calculate

Version : MACINTOSH:2.2,3.0; WINDOWS: 2.1,3.0; os/2:2.2,3.0
Platform : MACINTOSH OS/2 WINDOWS
Issue type : kbinfo


Last reviewed: February 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.