XL5: Can't Insert Sheet Based on Template with Hidden SheetID: Q128192
|
In Microsoft Excel, when you insert a new sheet based on a template using the Sheet tab shortcut menu, if the template contains a hidden sheet, one of the following occurs:
Sorry, a system error occurred. "Microsoft Excel" error type 11
This behavior occurs if the hidden sheet is the last sheet in the template
file, and the sheet was hidden using the xlveryhidden constant in a Visual
Basic procedure.
For example, if you create a template file, BOOK1.XLT, that contains the
sheets Sheet1 and Sheet2, where Sheet2 is the last sheet in the workbook,
and you hide Sheet2 using the following command
Sheets("Sheet2").Visible = xlveryhidden
Microsoft Excel stops responding (hangs) when you insert a sheet based on
this template in any workbook file.
Q127944 XL5: Sheet Based on Template With Hidden Sheet Not Inserted
You can set the Visible property of a sheet to xlveryhidden to hide the object so that it can only be made visible again by setting the Visible property to True. That is, the sheet cannot be made visible by choosing Sheet from the Format menu, and then choosing Unhide. Note that this property can be set for a chart, dialog sheet, module or worksheet.
For more information about Creating An Autotemplate For New Sheets, choose
the Search button in Help and type:
templates, creating
For more information about the Visible property, choose the Search button
in Visual Basic Help and type:
visible property
Additional query words: 5.00a5.00c gpf crash lock up freeze
Keywords : kbprg
Version : WINDOWS:5.0,5.0c; MACINTOSH:5.0,5.0a
Platform : MACINTOSH WINDOWS
Issue type : kbprb
Last Reviewed: July 29, 1999