'Hiding a sheet in Excel 2007 (with a password) OR hide VBA code in Excel
I found a way to hide Excel sheets which is as follows: set the visibility of the sheet to VeryHidden in the VBAProject properties and then password protect VBAProject properties.
This is great, but in Excel 2007, if you save it as XLSX, the VBAProject password protection is stripped and you can view the VBA code. Is there any way to prevent this?
OR, is there any other way to hide an Excel 2007 sheet?
Solution 1:[1]
No.
If the user is sophisticated or determined enough to:
- Open the Excel VBA editor
- Use the object browser to see the list of all sheets, including VERYHIDDEN ones
- Change the property of the sheet to VISIBLE or just HIDDEN
then they are probably sophisticated or determined enough to:
- Search the internet for "remove Excel 2007 project password"
- Apply the instructions they find.
So what's on this hidden sheet? Proprietary information like price formulas, or client names, or employee salaries? Putting that info in even an hidden tab probably isn't the greatest idea to begin with.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | BradC |
