The information in this article applies to:
SYMPTOMSYou may not be able to unhide a module sheet if the following two conditions are true:
-and- CAUSE
Usually a module sheet that was hidden by setting the Visible property to
xlVeryHidden, can be unhidden by setting the Visible property to TRUE. But
if the module sheet contains a macro, that is called from a macro in a
different module sheet, and that module sheet also contains the macro to
unhide the module, the hidden module sheet will not be unhidden.
http://www.microsoft.com/support/supportnet/overview/overview.aspType the following code in module sheet, Module1:
You will still be able to run all the macros that are contained in the
hidden module.
NOTE: If you add the above macro to Module1 before hiding Module2, and then try to hide Module2, you receive an error message. For additional information, please see the following article in the Microsoft Knowledge Base: Q131551 Macro Cannot Set Module to xlVeryHidden WORKAROUNDTo unhide the module sheet, in this example Module2, make sure that the macro that unhides the module sheet (Module2), is in a different module sheet from the macro that calls the macro contained in the hidden module (Module2). Using the example above, you can put the calling macro in a new module sheet, Module3, and leave the unhide macro in Module1. You can also insert an apostrophe before the line that calls the macro, making that line a comment, or delete the calling line. After doing any of the above, you will be able to unhide the module by setting its Visible property to TRUE. REFERENCESFor more information about the Visible property in Microsoft Excel version 7.0, click Answer Wizard on the Help menu and type: Tell me about the visible propertyFor more information about the Visible property in Microsoft Excel version 5.0, choose the Search button in Help and type: visible property Additional query words: 5.00a 5.00c 7.00a XL5 XL7
Keywords : kbcode kbprg PgmOthr |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |