XL5: Macro Cannot Set Module to xlVeryHiddenLast reviewed: February 2, 1998Article ID: Q131551 |
The information in this article applies to:
SYMPTOMSWhen you set the Visible property of a module to xlVeryHidden, you may receive the following error message:
Macro Error 1005: Unable to set the Visible Property of the Module Class CAUSEThis error will occur if the module that is being hidden contains a macro that is currently running.
WORKAROUNDIf you would like to set the modules in a workbook to VeryHidden after you have finished creating them, follow these steps:
http://www.microsoft.com/supportnet/refguide/ STATUSThis behavior is by design of the versions of Microsoft Excel listed at the beginning of this article.
MORE INFORMATIONIn Microsoft Excel, setting the Visible Property of an object to xlVeryHidden hides the object so that it may only be unhidden by setting the Visible Property to True. For module sheets, this feature is primarily used to add a measure of protection to the macros in a workbook. NOTE: You will also receive this error message in two other situations:
ARTICLE-ID: Q128192 TITLE : XL5: Can't Insert Sheet Based on Template with Hidden Sheet ARTICLE-ID: Q128373 TITLE : XL5: Macro Cannot Determine If Sheet Is VeryHidden ARTICLE-ID:Q127944 TITLE : XL5: Sheet Based on Template with Hidden Sheet Not Inserted REFERENCESFor more information about the Visible property, choose the Search button in Programming with Visual Basic Help and type:
visible property |
Additional query words: 5.00 very hidden XL5
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |