LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
Desert Piranha
 
Posts: n/a
Default how do I restrict access to only one worksheet in excel?


Avinash Wrote:
I want to share an excel workbook for all on the network. However I do
not
want one worksheet only to be accessed.
The person should be able to access all the other worksheets.
I tried protecting, but people can see the sheet but cant modify. I
tried
adding a password, but with this you can either open the excel file or
not.
Is this even possible in Excel?Hi Avinash,

As the previous posters mentioed the best way is, don't include
that sheet with your workbook.

With that said try this:

Password protect the VBA to prevent viewing of your password

Put this into a General Module
Change 'Sheet2' and the password '12345' to suit your needs.

Option Private Module
Sub HideSheet()
Sheet2.Visible = xlSheetVeryHidden
End Sub

Sub ShowSheet()
Dim sPass
sPass = InputBox("Please input password")
If sPass = "12345" Then
Sheet2.Visible = True
End If
End Sub


--
Desert Piranha


------------------------------------------------------------------------
Desert Piranha's Profile: http://www.excelforum.com/member.php...o&userid=28934
View this thread: http://www.excelforum.com/showthread...hreadid=523874

 
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
Excel Access and Oracle Chris K Excel Discussion (Misc queries) 1 February 17th 06 06:16 PM
Easiest Way to have access functionality in Excel or vice-versa? John Excel Worksheet Functions 4 May 27th 05 09:15 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM
Excel aficionado wants to learn Access Hari Excel Discussion (Misc queries) 0 December 3rd 04 05:47 AM
Excel aficionado wants to learn Access Hari Excel Discussion (Misc queries) 0 December 3rd 04 05:45 AM


All times are GMT +1. The time now is 03:57 PM.

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

About Us

"It's about Microsoft Excel"