Disable Unhide

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.
 
G

Gord Dibben

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
 
D

Dave Peterson

Open the VBE (alt-f11)
Tools|VBAProject Properties|Protection tab|Protection tab

Save and close your workbook.

Reopen the workbook to test.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top