Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / March 2008

Tip: Looking for answers? Try searching our database.

Limit Visibility of a worksheet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tdahlman - 12 Mar 2008 15:52 GMT
I have multiple sheets in a workbook.
I want to limit the visibility of 2 of the sheets so that you have to have a
password to view them.

How do I go about doing this.

Thanks in advance,
Travis Dahlman
Tom Hutchins - 12 Mar 2008 17:13 GMT
One way, using macros:

Paste these in a VBA module in your workbook. Change the sheet names and
password as desired.

Sub HideSheets()
Sheets("Sheet2").Visible = xlSheetVeryHidden
Sheets("Sheet3").Visible = xlSheetVeryHidden
End Sub

Sub UnhideSheets()
Dim ret
Const Pwd = "tTyY7&uU"
ret = InputBox("Password to unhide sheets", "Unhide Sheets")
If ret = Pwd$ Then
   Sheets("Sheet2").Visible = xlSheetVisible
   Sheets("Sheet3").Visible = xlSheetVisible
End If
End Sub

These macros could be called from buttons on another sheet. You should also
password protect the VBAProject for the workbook. This will prevent most
users from seeing the sheets or the pasword, but the security in an Excel
workbook is far from unbreakable once the workbook is open.

Hope this helps,

Hutch

> I have multiple sheets in a workbook.
> I want to limit the visibility of 2 of the sheets so that you have to have a
[quoted text clipped - 4 lines]
> Thanks in advance,
> Travis Dahlman
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.