My workbook is not protected. I have about 20 out of 45 worksheets that are hidden (25 worksheets visible at all times). When the workbook is closed, I unhide 6 of these worksheets so our servers can read the worksheets when the file is uploaded.
When I try and unhide using
, the error I get is:
Run-time error '1004': Application-defined or object-defined error.
When I try and unhide using the VBE properties window changing the Visible property from "0 -xlSheetHidden" to "-1 - xlSheetVisible", the error I get is:
Unable to set the Visible property of the Worksheet class.
When I try and unhide from the menu (ALT, T, T, P), I get nothing. No error message, nada. The "Unhide" option is grayed out on the tab's context menu (right-click on the tab).
The workbook has to be compatible with Excel 2000 and later, so it is an XLS file type. This seems to be happening mostly in Excel 2010, but it has been reported once or twice with 2007. It does not happen to every file. I have about 1,000 files distributed and this issue has come up about a dozen times.
Is this file corrupt? Is there something that I am missing?
Thanks
Rob
When I try and unhide using
Code:
Worksheets("Sheet1").Visible = xlSheetVisible
Run-time error '1004': Application-defined or object-defined error.
When I try and unhide using the VBE properties window changing the Visible property from "0 -xlSheetHidden" to "-1 - xlSheetVisible", the error I get is:
Unable to set the Visible property of the Worksheet class.
When I try and unhide from the menu (ALT, T, T, P), I get nothing. No error message, nada. The "Unhide" option is grayed out on the tab's context menu (right-click on the tab).
The workbook has to be compatible with Excel 2000 and later, so it is an XLS file type. This seems to be happening mostly in Excel 2010, but it has been reported once or twice with 2007. It does not happen to every file. I have about 1,000 files distributed and this issue has come up about a dozen times.
Is this file corrupt? Is there something that I am missing?
Thanks
Rob