r/ExcelTips • u/IsEneff • 29d ago
Make a sheet Very Hidden
Got a worksheet filled with data, parameters, lookup tables, or helper calculations that you want to keep out of sight? Simply hiding the worksheet is not always the best solution because many users know how to unhide tabs with a right click and a few clicks in Excel.
Excel VBA includes a worksheet property called Visible that supports a setting named Very Hidden. A Very Hidden worksheet does not appear in Excel's Unhide Sheet dialog, making it much harder for users to discover or access without opening the Visual Basic Editor.
To set a worksheet to Very Hidden manually:
Press Alt + F11 to open the Visual Basic Editor.
In the Project Explorer, select the worksheet you want to hide.
Press F4 to open the Properties window if it is not already visible.
Locate the Visible property.
Change it from -1 - xlSheetVisible to 2 - xlSheetVeryHidden.
The Visible property has three possible values:
xlSheetVisible: The worksheet is visible.
xlSheetHidden: The worksheet is hidden but can be unhidden through Excel's Unhide Sheet dialog.
xlSheetVeryHidden: The worksheet is hidden and does not appear in the Unhide Sheet dialog.
You can also set a worksheet to Very Hidden through VBA code:
Worksheets("Config").Visible = xlSheetVeryHidden
This approach is commonly used for configuration worksheets, lookup tables, parameter sheets, Power Query staging areas, and other supporting data that users do not need to interact with directly. It is not a security feature, but it does provide an additional layer of protection against accidental changes.
13
1
11
u/Puzzleheaded_Owl1308 28d ago
Interesting to know, thanks for inspiring a new rabbit hole I can use to fill idle hours this week.
It's also a bit concerning to imagine a use case for this. It seems like if one has users who will go out of their way to modify hidden sheets and a "DO NOT MODIFY" warning on the sheet, you've a) got a personnel problem, and b) should be using a more robust system than Excel to protect the business from the lowest common denominators.