Tools|Protection|Protect workbook|check the Structure option.
Give it a nice memorable password.
Be aware that this password is easily broken--so it won't stop everyone.
And this will stop the users from renaming, adding, deleting, moving worksheets.
ps. This is a text only newsgroup. Please post in plain text--not HTML.
--
Dave Peterson
> ------=_NextPart_000_0011_01C6F3AE.02124A50
> Content-Type: text/html; charset=iso-8859-1
> Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 892
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
> <META content="MSHTML 6.00.2900.2963" name=GENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=#ffffff>
> <DIV><FONT face=Arial size=2>I wrote a macro that hides worksheets under certain
> conditions. Is there a way so that users can't simply unhide those sheets,
> perhaps via some sort of password they wouldn't know? Does the workBOOK
> need to be protected to accomplish this? If so, what are the other adverse
> implications of protecting a workbook? I don't want a cure worse than
> the disease.</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT> </DIV>
> <DIV><FONT face=Arial size=2>Thanks!</FONT></DIV>
> <DIV><FONT face=Arial size=2>Dean</FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_0011_01C6F3AE.02124A50--
"A good example is twice the value of good advice."
The macros work like a charm. Spreadsheets stay hidden and protected as
required and can't be interfered with unless the designer opens them up with
macros turned off, unlocks the spreadsheet, unhides forms, etc.
It was a monster to program (not a vba expert here) but it was fun!
Paul
"Dean" <whooshb...@adelphia.net> wrote in message
news:89GdnZnF2599taXY...@adelphia.com...
The tips here are good ones.
My approach:
1. Make the fonts white so that the worksheet looks empty to a novice
2. Add a sub that makes it so that when someone clicks on a cell that
they get sent to range A1 - That keeps someone from tabbing through the
cells and reading content from the formula bar.
3. Password protect the sheet.
4. Hide the sheet.
Keep in mind. The BEST way to protect data is to never store it in the
Workbook to begin with. Put the sensitive data in a Worksheet that
exists in a plugin.
It seems like your approach won't stop them from unhiding the worksheet. It
just is an easy way to rehide it, if anyone wants to. That is not my
problem. If this will, indeed, automatically rehide the sheet every time
they try to unhide it, then I need to understand how to assign that to only
the hidden sheets. Kindly confirm/explain.
<runde...@gi.konicaminolta.us> wrote in message
news:1161312444....@i3g2000cwc.googlegroups.com...
Is there a downside to workbook protection?
D
Dean
"Dave Peterson" <pete...@verizonXSPAM.net> wrote in message
news:45382A92...@verizonXSPAM.net...
Thanks!
D
"Charles Chickering" <CharlesC...@discussions.microsoft.com> wrote in
message news:F2FD700F-BC4E-4F75...@microsoft.com...
My client doesn't want every user to know of all the different deal options
that preferred clients of theirs sometimes get, hence the hiding of sheets,
etc. Also, some stuff will only confuse them - things like that, not the
compromise of data, per se, so I'm not sure the plug-in approach would help,
which is good because I have no idea what that is!!
I seem to recall that the white font still shows when you highlight the
cell, or something like that, something even a novice might notice.
But your tips are excellent. Thanks!
Dean
<gimme_this...@yahoo.com> wrote in message
news:1161385196.5...@e3g2000cwe.googlegroups.com...
--
Dave Peterson
"Dave Peterson" <pete...@verizonXSPAM.net> wrote in message
news:45399C95...@verizonXSPAM.net...
You, or your employer, will live to regret it.
I did that once, I worked for a big 5 consulting firm - I didn't know
about AddIns. My Workbook application priced health care plans. A
client broke into the Worksheet and started a competing business. My
customer got fired and I got laid off.
Learn how to use AddIns. They aren't that complicated and that's why
Excel created AddIns - precisely for this sort of thing.
Put those hidden sheets into the AddIn.
Look up AddIn an any of Walkenbach's texts. Two or three pages.