The information in this article applies to:
SYMPTOMSIn Microsoft Excel, if you use a Visual Basic function procedure in a cell on a worksheet, and you then use the result of this function as the argument for the same function in another cell, the function that references the result of the function returns an incorrect value. CAUSE
This problem only occurs if the following are true:
-and- A1: 2 A2: =Test(A1) A3: =Test(A2) where the function Test is defined as follows
the inverse value of cell A1, 0.5, is correctly returned in cell A2,
and the inverse value of cell A2, 2, is correctly returned in cell
A3. However, if you then change the value in cell A1, cell A3 returns
the value 0.
NOTE: Because this is a calculation problem, the correct value is returned in cell A3 when you recalculate the worksheet. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel for Windows version 5.0c. WORKAROUND
To work around this problem, when you use a cell range in the function
procedure that uses a worksheet function, return the Value property of the
argument as in the following example:
REFERENCES
For more information about Using Worksheet Functions In Visual Basic,
choose the Search button in the Visual Basic Reference and type:
Additional query words: zero
Keywords : |
Last Reviewed: July 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |