Disable Unhide

  • Thread starter Thread starter dhstein
  • Start date Start date
D

dhstein

I have a worksheet where I want to keep a tab hidden for all users but 1. I
hide the tab and provide a macro with a keyboard shortcut. I also restrict
the use of that macro to only that user's workstation - if anyone else runs
it, nothing will happen. But still, other users might discover the hidden
tab and unhide it. Is there any way to disable the "Unhide" option for tabs
on specific systems - or even within the workbook? Thanks for any help on
this.
 
In your macro make the the sheet xlveryhidden

Sheets("thesheet").Visible = xlVeryHidden

Won't show up in Format>Sheet>Unhide

Then lock the VBAproject from viewing with a password so's users cannot
change the code.


Gord Dibben MS Excel MVP
 
Open the VBE (alt-f11)
Tools|VBAProject Properties|Protection tab|Protection tab

Save and close your workbook.

Reopen the workbook to test.
 
Back
Top