Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Don't unhide my worksheets

In your active sheet,
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Sheet2.Visible = xlSheetVisible Then
Sheet2.Visible = xlSheetHidden
End If
End Sub

Dean wrote:
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.

Thanks!
Dean
------=_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=2I wrote a macro that hides worksheets under certain
conditions.&nbsp; Is there a way so that users can't simply unhide those sheets,
perhaps via some sort of password they wouldn't know?&nbsp; Does the workBOOK
need to be protected to accomplish this?&nbsp; If so, what are the other adverse
implications of&nbsp;protecting a workbook?&nbsp; I don't want a cure worse than
the disease.</FONT</DIV
<DIV<FONT face=Arial size=2</FONT&nbsp;</DIV
<DIV<FONT face=Arial size=2Thanks!</FONT</DIV
<DIV<FONT face=Arial size=2Dean</FONT</DIV</BODY</HTML

------=_NextPart_000_0011_01C6F3AE.02124A50--


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Don't unhide my worksheets

I may not understand your answer. My fear is that someone who gets my
workbook will know enough to unhide the worksheets we don't want them to be
able to see. The designation as a "very hidden" worksheet posted just after
yours sounds quite promising but, if I don't use that, I want to understand
what you are saying.

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.


wrote in message
ps.com...
In your active sheet,
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Sheet2.Visible = xlSheetVisible Then
Sheet2.Visible = xlSheetHidden
End If
End Sub

Dean wrote:
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.

Thanks!
Dean
------=_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=2I wrote a macro that hides worksheets under
certain
conditions.&nbsp; Is there a way so that users can't simply unhide those
sheets,
perhaps via some sort of password they wouldn't know?&nbsp; Does the
workBOOK
need to be protected to accomplish this?&nbsp; If so, what are the other
adverse
implications of&nbsp;protecting a workbook?&nbsp; I don't want a cure
worse than
the disease.</FONT</DIV
<DIV<FONT face=Arial size=2</FONT&nbsp;</DIV
<DIV<FONT face=Arial size=2Thanks!</FONT</DIV
<DIV<FONT face=Arial size=2Dean</FONT</DIV</BODY</HTML

------=_NextPart_000_0011_01C6F3AE.02124A50--




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
Unhide Worksheets Wanna Learn Excel Discussion (Misc queries) 0 November 30th 06 04:38 PM
Unhide Worksheets Randy L Excel Discussion (Misc queries) 0 November 30th 06 03:58 PM
Unhide Worksheets Wanna Learn Excel Discussion (Misc queries) 0 November 30th 06 03:30 PM
unhide several worksheets jggsfl Excel Discussion (Misc queries) 1 July 11th 06 07:45 PM
Hide and unhide worksheets Profairy[_6_] Excel Programming 3 June 9th 04 04:20 PM


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