Excel Macro Not Executing Correctly When Hidden or InactiveLast reviewed: November 2, 1994Article ID: Q30548 |
The information in this article applies to:
When attempting to run a hidden or inactive macro, referencing the macro sheet may cause improper execution of the macro. If the sheet is activated, the macro functions properly. Due to the way certain macro functions work, the macro may need to be activated to function properly. For example, if the macro sheet is not active, the following command will not work:
=SELECT(MACRO1.XLM!A1:B4)To correctly make this selection, type the following:
=ACTIVATE("MACRO1.XLM") =SELECT(A1:B4)These steps allow the macro to activate the macro sheet and select the range of cells. This same procedure can also be used with worksheets and charts. Please note that the ACTIVATE function will not cause a hidden document to be displayed.
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |