FORMULA Function Gives Macro Error on Hidden WorksheetLast reviewed: November 30, 1994Article ID: Q70478 |
The information in this article applies to:
SUMMARYThe FORMULA function will return a macro error when used to move data on a hidden worksheet or an add-in (.XLA) file in Microsoft Excel when the Null bar is displayed. The Null bar is the menu that is displayed when no sheets are open. NOTE: This does not occur in later versions of Microsoft Excel for Windows.
MORE INFORMATIONThis can be seen using a Microsoft Excel add-in file that uses a custom dialog box to retrieve data. In such an example, the FORMULA statement cannot be used to move the data to another cell. The formula statement cannot be used to move data when the Null bar (Menu ID=3) is displayed. Data can still be transferred using the SET.VALUE function.
Steps to Reproduce Problem
SolutionIf you substitute the line =SET.VALUE(C1,B1) for cell A1, the macro will run without an error.
|
KBCategory: kbprg kbmacro
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |