Excel: Formulas from FILEFNS.XLA Add-In Return #VALUE!Last reviewed: November 30, 1994Article ID: Q79184 |
The information in this article applies to:
SUMMARYThe macro functions provided by Microsoft Excel's FILEFNS.XLA may return #VALUE! errors if you open FILEFNS.XLA from a macro sheet using the OPEN macro command. FILEFNS.XLA, like the other Library Macros, runs an Auto_Open macro upon loading the file. When a document that runs an auto- open macro is itself opened by a macro, the auto-open macro will not run.
MORE INFORMATIONThe FILEFNS.XLA is a file functions macro that gives you four additional macro functions to create, delete, and get information about directories. The Auto_Open macro in FILEFNS.XLA consists of several REGISTER statements that link to a dynamic-link library (FILEFNS.DLL). These are then referenced by CALL functions when one of the new macro functions is used. If the Auto_Open macro is not run when FILEFNS.XLA is loaded, the REGISTER functions do not execute. As a result, if one of the CALL statements is then executed by using one of the new macro functions, the function will return a #VALUE! error. Note: The functions are still added to the dialog box that appears when you choose Paste Functions from the Formula menu. This is because the functions are added to the menu as a functionality of add-in macros, not by the Auto_Open macro.
WorkaroundTo run an Auto_Open macro called on a sheet that was loaded by another macro, use the RUN macro function or call the macro directly as in the example below. The following macro will open FILEFNS.XLA and run the Auto_Open macro.
Steps to Reproduce Problem
REFERENCES"Microsoft Excel User's Guide," version 3.0, pages 622, 679-680
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |