Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sb sb is offline
external usenet poster
 
Posts: 16
Default Restricted Access

I have a large workbook with several different woksheets in it.
Each worksheet refers to a different individual. Is there a way that I can
set up this workbook so that only certain people can see each spreadsheet.
Obviously I know how to protect cells from changes and passwording things,
etc but I have never tried to do anything this complex.
I would rather keep all these spreadsheets in the one place rather than set
one up for each individual if possible.
I know there is some protection system that can be set up/downloaded but I
can't be sure that all my users have that.
Can anyone help me?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Restricted Access

The name sin the open routine are the login ids, so adapt them and the
orksheet names to reality.

Private Sub Workbook_BeforeClose(Cancel As Boolean)

Worksheets("Master").Visible = xlSheetVisible
Worksheets("Eugene").Visible = xlSheetVeryHidden
Worksheets("Joe").Visible = xlSheetVeryHidden
Worksheets("Mick").Visible = xlSheetVeryHidden
Worksheets("Sarah").Visible = xlSheetVeryHidden
'etc.

Me.Save
End Sub

Private Sub Workbook_Open()

Select Case Environ("Username")

Case "EMcIntyre": Worksheets("Eugene").Visible = xlSheetVisible
Case "JJones": Worksheets("Joe").Visible = xlSheetVisible
Case "MickM": Worksheets("Mick").Visible = xlSheetVisible
Case "SarahBrown": Worksheets("Sarah").Visible = xlSheetVisible
'etc.
End Select

End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
__________________________________
HTH

Bob

"SB" wrote in message
...
I have a large workbook with several different woksheets in it.
Each worksheet refers to a different individual. Is there a way that I
can
set up this workbook so that only certain people can see each spreadsheet.
Obviously I know how to protect cells from changes and passwording things,
etc but I have never tried to do anything this complex.
I would rather keep all these spreadsheets in the one place rather than
set
one up for each individual if possible.
I know there is some protection system that can be set up/downloaded but
I
can't be sure that all my users have that.
Can anyone help me?



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
Restricted Access with Macros Simon Craner Excel Discussion (Misc queries) 0 July 4th 08 10:05 AM
VLOOKUP with restricted access rights DaveO[_2_] Excel Worksheet Functions 2 August 6th 07 08:20 PM
Restricted Worksheet Philip Drury Excel Discussion (Misc queries) 1 March 28th 07 02:14 AM
Excel Restricted Barry Excel Discussion (Misc queries) 0 March 27th 06 11:57 PM
restricted access in Excel 2000? dg Excel Discussion (Misc queries) 0 July 14th 05 03:23 PM


All times are GMT +1. The time now is 05:32 AM.

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"