XL: Using Calculate Method May Not Calculate Certain FormulasID: Q144508
|
When you calculate values on a worksheet, formulas that refer to cells that contain custom functions may not be calculated correctly.
This problem may occur if the following conditions are true:
To correct this problem, obtain Microsoft Excel 97 Service Release 2
(SR-2).
For additional information about SR-2, please see the following article in
the Microsoft Knowledge Base:
Q151261 : OFF97: How to Obtain and Install MS Office SR-2
To temporarily work around this problem, use one of the following methods.
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
the Microsoft fee-based consulting line at (800) 936-5200. For more
information about the support options available from Microsoft, please see
the following page on the World Wide Web:
http://www.microsoft.com/supportnet/refguide/
Application.Volatile
+(NOW()*0)
=A1
=A1+(NOW()*0)
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
Function Test() As Long
Static i As Long
Test = i
i = i + 1
End Function
Sub Calc_Custom_Function()
Range("A1").Calculate
End Sub
Additional query words: XL97 XL7 recalc
Keywords : kbprg kbdta kbdtacode xlformula
Version :
Platform :
Issue type : kbbug
Last Reviewed: May 17, 1999