hidden worksheet
Please can someone answer this question I got at an interview?
What might be a reason why code to make a worksheet hidden might not work? |
hidden worksheet
The workbook is protected at ToolsProtectionProtect Workbook.
Gord Dibben MS Excel MVP On 16 Jan 2007 16:10:04 -0800, "colmkav" wrote: Please can someone answer this question I got at an interview? What might be a reason why code to make a worksheet hidden might not work? |
hidden worksheet
Here are a couple:
It'll fail if the workbook's structure is protected (tools|Protection|protect workbook|check structure) It'll fail if that's the only visible worksheet in the workbook. The code tries to hide a worksheet by name and there is no worksheet by that name (the user renamed/deleted it). colmkav wrote: Please can someone answer this question I got at an interview? What might be a reason why code to make a worksheet hidden might not work? -- Dave Peterson |
hidden worksheet
The code tries to hide a worksheet by name and there is no worksheet by that
name (the user renamed/deleted it). Or the code is trying to select the hidden sheet in question in order to hide it, but the sheet is already hidden (or does not exist or is otherwise unavailable). In any event, it's probably due to the user doing something you didn't think any rationale person would attempt. "Dave Peterson" wrote: Here are a couple: It'll fail if the workbook's structure is protected (tools|Protection|protect workbook|check structure) It'll fail if that's the only visible worksheet in the workbook. The code tries to hide a worksheet by name and there is no worksheet by that name (the user renamed/deleted it). colmkav wrote: Please can someone answer this question I got at an interview? What might be a reason why code to make a worksheet hidden might not work? -- Dave Peterson |
All times are GMT +1. The time now is 08:43 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com