Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Protecting Sheet to Prevent Viewing

Is there a easy follow up instruction on protecting sheet from viewing?

Here is what I find from Q&A, I tried but could not figure it out how it work.

Right Click the Sheet tab and select "View Code" then add
the following code. You can change the password to whatever you like.


Private Const Password As String = "DoubleOhSeven"

Private Sub Worksheet_Activate()
Me.Visible = False
If InputBox("Please Enter the Password for the " & Me.Name & " Sheet",
"Enter Password") < Password Then
Me.Visible = False
Else
Me.Visible = True
End If
End Sub

--
Thanks,
Aline
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Protecting my formulas from viewing pillai Excel Discussion (Misc queries) 3 December 30th 07 05:55 PM
hide a page and prevent outside users from viewing it. [email protected] Excel Discussion (Misc queries) 4 June 18th 07 09:30 PM
Protecting Excel file to prevent changes simmerdown Excel Discussion (Misc queries) 1 April 19th 06 10:29 PM
Protecting Sheet to Prevent Viewing At All Michael Link Excel Discussion (Misc queries) 9 September 25th 05 08:13 AM
can you prevent viewing of specific columns in a worksheet Tamara Excel Worksheet Functions 1 January 19th 05 04:12 PM


All times are GMT +1. The time now is 11:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"