XL97: VBE: User-Defined Functions Are Calculated Incorrectly

Last reviewed: January 9, 1998
Article ID: Q170650
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

When you use the Function Wizard to enter a formula containing a user- defined function in a cell, the formula may be calculated more than once.

CAUSE

A user-defined function is calculated multiple times in Microsoft Excel 97 for Windows if the following conditions are true:

  • The user-defined function is created in Visual Basic for Applications.

        -and-
    
  • The user-defined function is inserted into the spreadsheet with the Function Wizard.

Note that this behavior does not occur if the user-defined function is entered directly in a cell in a worksheet.

WORKAROUND

To work around this problem, do not use the Function Wizard to insert the custom function.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

REFERENCES

For more information about entering formulas, click the Index tab in Microsoft Excel Help, type the following text

   entering formulas, typing a formula

and then double-click the selected text to go to the "How formulas calculate values" topic.

Keywords          : kbprg
Version           : WINDOWS:97
Platform          : WINDOWS
Issue type        : kbprb
Solution Type     : kbworkaround


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 9, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.