XL97: Custom Function Returns #VALUE! Error After Running MacroLast reviewed: March 13, 1998Article ID: Q175226 |
The information in this article applies to:
SYMPTOMSIf you call a user-defined (custom) function from a worksheet formula, and then run a Microsoft Visual Basic for Applications macro, the user-defined function may return the #VALUE! error.
CAUSEThis problem occurs if all of the following conditions are true:
RESOLUTIONTo resolve this problem, use the Value property instead of the Text property in the custom function. NOTE: If you must use the Text property, recalculate the formulas in the workbook by pressing CTRL+ALT+F9.
STATUSMicrosoft 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.
MORE INFORMATIONYou can use the Text property or the Value property with a Range object. The Value property returns the actual underlying cell value, while the Text property returns the formatted value that is displayed in the cell.
REFERENCESFor more information about the Text Property, click the Office Assistant in the Visual Basic Editor, type "text," click Search, and then click to view "Text Property (Excel 97)." NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If the Assistant is not able to answer your query, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q176476 TITLE : OFF: Office Assistant Not Answering Visual Basic Questions |
Additional query words: XL97
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |