Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default How to password Protect when WORKSHEET is Very HIDDEN

Hi,

I have a workbook that contains three worksheets but i have hidden on
worksheet (Sheet2) but i m retrieving data into sheet1 by formula,
this workbook goes to other users too and they can just click on Sheet
TAB and enable that sheet's visibility and see what the data is?

So my question is that how i can disable this right click on SHEET
TAB

OR

How can i protect this option by password like excel is providing this
facility for the whole sheet and workbook but if i only want to
protect this then how?

I saw that option which is in VBA PROJECT PROTIES but it doesn't work.

Kindly tell me step by step or provide me any example sheet or video.


I will be thankful to you.


Thanks
Husnain

NOTE: email me at
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default How to password Protect when WORKSHEET is Very HIDDEN

You need to use the Protect Workbook option
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default How to password Protect when WORKSHEET is Very HIDDEN

Hi,

You can disable right click on sheet tabs with this

Application.CommandBars("Ply").Enabled = False

Mike

"Invisible" wrote:

Hi,

I have a workbook that contains three worksheets but i have hidden on
worksheet (Sheet2) but i m retrieving data into sheet1 by formula,
this workbook goes to other users too and they can just click on Sheet
TAB and enable that sheet's visibility and see what the data is?

So my question is that how i can disable this right click on SHEET
TAB

OR

How can i protect this option by password like excel is providing this
facility for the whole sheet and workbook but if i only want to
protect this then how?

I saw that option which is in VBA PROJECT PROTIES but it doesn't work.

Kindly tell me step by step or provide me any example sheet or video.


I will be thankful to you.


Thanks
Husnain

NOTE: email me at

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to password Protect when WORKSHEET is Very HIDDEN


This line is used in a VBA standard module
Sheets("Sheet2").Visible = xlSheetVeryHidden

This is how to create a standard module:
*How to add and run a Macro*1. *Copy* the macro above pressing
the keys *CTRL+C*
2. Open your workbook
3. Press the keys *ALT+F11* to open the Visual Basic Editor
4. Press the keys *ALT+I* to activate the *Insert menu*
5. *Press M* to insert a *Standard Module*
6. *Paste* the code by pressing the keys *CTRL+V*
7. Make any custom changes to the macro if needed at this time.
8. *Save the Macro* by pressing the keys *CTRL+S*
9. Press the keys *ALT+Q* to exit the Editor, and return to Excel.

*To Run the Macro...*
To run the macro from Excel, open the workbook, and press *ALT+F8* to
display the *Run Macro Dialog*. Double Click the macro's name to *Run*
it.


Invisible;269755 Wrote:
Hi,

I have a workbook that contains three worksheets but i have hidden on
worksheet (Sheet2) but i m retrieving data into sheet1 by formula,
this workbook goes to other users too and they can just click on Sheet
TAB and enable that sheet's visibility and see what the data is?

So my question is that how i can disable this right click on SHEET
TAB

OR

How can i protect this option by password like excel is providing this
facility for the whole sheet and workbook but if i only want to
protect this then how?

I saw that option which is in VBA PROJECT PROTIES but it doesn't work.

Kindly tell me step by step or provide me any example sheet or video.


I will be thankful to you.


Thanks
Husnain

NOTE: email me at ' )



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=75220

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default How to password Protect when WORKSHEET is Very HIDDEN

Invisible wrote...
....
So my question is that how i can disable this right click on SHEET
TAB


Looks like your basic premise is that your users can't be trusted.
Taking that as given, there's no reliable way to disable menus since
all means of disabling menus require macros, but these untrustworthy
users can open your workbook with macros disabled. So macros aren't a
robust means of securing data in workbooks.

OR

How can i protect this option by password like excel is providing this
facility for the whole sheet and workbook but if i only want to
protect this then how?


Excel's internal passwords are easily overcome. Still, this could be
effective if your users are unsophisticated. Just protect the workbook
once you've hidden the worksheet.

However, if there are formulas in other worksheets that are visible to
users, and users can see formulas in the visible worksheets that refer
to the hidden worksheet, all they'd need to do is open another
workbook and use external references into the hidden worksheet in the
first workbook in order to exposure ALL THE DATA in the hidden
worksheet.

So there are no simple, direct means of securing data in Excel
workbooks.

You need to use complicated, indirect means instead. You could use
multiple levels of hidden defined names to mask the fact that they
ultimately refer to a very hidden worksheet, but in the end, if an
untrustworthy user can see a formula referring to a hidden name like
XYZ in YourWorkbook.XLS, they'd only need to open another workbook and
enter the formula

=ADDRESS('YourWorkbook.XLS'!XYZ,0,0,1)

to uncover the name of your hidden worksheet. Once they discover it's
named VERYVERYPRIVATE, they could populate a worksheet in the new
workbook they created with formulas like

A1: ='[YourWorkbook.XLS]VERYVERYPRIVATE!A1

and fill that A1 into A1:IV65536 to expose all the data in
VERYVERYPRIVATE.

This doesn't even need VBA. With VBA, users could list ALL worksheets
in any other OPEN workbook, even very hidden worksheets in protected
workbooks.

In short, there's NO WAY to protect data in Excel workbooks users can
OPEN. Once a user opens a workbook, Excel provides MANY different ways
to access ALL the data in ALL of the worksheets in that workbook.

If you absolutely need to protect your data, you can't use Excel to
hold that data. Sorry, there's no way around this. If you want to use
limited filtered secured data in Excel workbooks, you need to fetch it
from secure data sources using queries. THERE IS NO ALTERNATIVE.


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default How to password Protect when WORKSHEET is Very HIDDEN

Hi,

a number of options:

1. You turn on the Format, Cells, Protection, Hidden option for the hidden
sheet. Then you can apply the custom format ;;; (three semi-colons) to all
the cells you want hidden on that sheet - Format, Cells, Number tab, Custom.
Then you can password protect the sheet.
2. You can hide the sheet, without code, choosing Format, Sheet, Hide.
Then you can choose Tools, Protection, Protect Workbook and check Structure
and add a password.
3. You can use the VBA routine to make the sheet very hidden, however,
unless you protect the module the sheet can still be exposed. In the VBE
choose Tools, VBAProject Properties, Protection tab, check Lock project for
viewing, and add a password.


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Invisible" wrote:

Hi,

I have a workbook that contains three worksheets but i have hidden on
worksheet (Sheet2) but i m retrieving data into sheet1 by formula,
this workbook goes to other users too and they can just click on Sheet
TAB and enable that sheet's visibility and see what the data is?

So my question is that how i can disable this right click on SHEET
TAB

OR

How can i protect this option by password like excel is providing this
facility for the whole sheet and workbook but if i only want to
protect this then how?

I saw that option which is in VBA PROJECT PROTIES but it doesn't work.

Kindly tell me step by step or provide me any example sheet or video.


I will be thankful to you.


Thanks
Husnain

NOTE: email me at

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default How to password Protect when WORKSHEET is Very HIDDEN

Shane Devenshire wrote...
....
3. You can use the VBA routine to make the sheet very hidden, however,
unless you protect the module the sheet can still be exposed. *In the VBE
choose Tools, VBAProject Properties, Protection tab, check Lock project for
viewing, and add a password.


Users can disable macros, so protecting VBA modules is no guarantee
macros would be run, unchanged or not.

Also, VBA passwords are only slightly more difficult to bypass than
worksheet/workbook passwords. If you have a hex editor, a web browser
and an internet connection, you have all you need to unlock VBA
modules.

But this is mostly irrelevant. While it's possible to hide FORMULAS
from less sophisticated users, it's impossible to hide DATA (including
formulas' values) from users. Until Excel includes a security/
protection option that prevents evaluation of external references into
such protected workbooks, once a user knows that sheet XYZ is the
hidden worksheet in ABC.XLS with all the sensitive data, they just
need to open a new workbook and enter formulas like ='[ABC.XLS]XYZ'!A1
in cell A1 of a worksheet in the new workbook and fill it into the
rest of the worksheet, and all of the sensitive data is exposed.

The OP has already decided his/her users are untrustworthy. If they're
also a bit dim, then the methods mentioned by others in this thread
may work. OTOH, if they're relatively clever, then there's no
protecting data in Excel workbooks those users can open.
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
How can I password protect a hidden column in Excel? Ira.Stoller Excel Worksheet Functions 9 April 24th 23 07:42 PM
How do I password protect hidden sheet? Mascot Excel Discussion (Misc queries) 1 October 5th 06 03:52 PM
Protect a worksheet with a password colettey29 Excel Worksheet Functions 2 September 26th 06 05:51 PM
Password protect a hidden tab Dominic Excel Discussion (Misc queries) 2 March 23rd 06 09:23 PM
How to password protect hidden columns and custom views in Excel blade444 Excel Discussion (Misc queries) 2 July 29th 05 01:36 PM


All times are GMT +1. The time now is 08:15 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"