LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Limiting access to a worksheet

I'm struggling with a problem to which I suspect the
solution is really simple, at least to you experts out
there. So I would really appreciate your help, please.

I have a workbook with just two sheets. Most of the action
takes place in Sheet 1, but from time to time the user
will wish to go to Sheet 2 to view the data from Sheet 1
formatted in a different manner.

However, I would like to limit the user's access to Sheet
2 to just those times when the data therein is valid.

In the code for Sheet 1 I have tried using
'Worksheets(2).Visible = XlSheetVeryHidden'
to hide Sheet 2's tab. When I'm ready to allow the user
access to Sheet 2 I then use
'Worksheets(2).Visible = XlSheetVisible'

This works, but the interface is very clunky, in that
making Sheet 2 visible again actually acivates Sheet 2 for
a fraction of a second, which looks really messy. What I
really want is just for the tab for Sheet 2 to reappear so
that the user can access Sheet 2 when he or she so wishes.

What would be really neat instead of hiding and revealing
the tab for Sheet 2 would be simply to grey it out when
access is denied. Is this possible?

Any thoughts would be much appreciated.

Regards
Andrew
 
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 2007 - security / limiting access Paul Excel Discussion (Misc queries) 0 September 2nd 09 02:54 PM
Worksheet Automation and Size Limiting AUCP03 Excel Worksheet Functions 0 April 9th 09 10:25 PM
Excel2007 limiting Pre-2007 Worksheet protection passwords to 15 c greg.campeau Excel Discussion (Misc queries) 2 July 2nd 08 06:13 PM
Question about limiting access to functions in Excel Brian Smith Excel Discussion (Misc queries) 1 February 1st 07 12:48 PM
Limiting access to excel worksheets Chris Excel Discussion (Misc queries) 2 January 8th 07 10:51 AM


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