Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default How can I have 45 mulitple sheets with 45 different acess rights to view to each sheet


I have 45 different sheets for 44 different workers in one workbook. How can I allow all 45 workers to be able to view sheet (1) and


sheet (2) can be viewed and edited only by the worker who will enter a password 22sa
sheet (3) can be viewed and edited only by the worker who will enter a password 164
sheet (4) can be viewed and edited only by the worker who will enter a password xyz
etc...up to 45 different workers

Keep in mind that there are some cells are protected and some are not in all the sheet.

Is there a way?


--------------------------------------------------------------------------------

Sam Sebaihi

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default How can I have 45 mulitple sheets with 45 different acess rights to view to each sheet

Sam

Most things are possible. This is *very* theoretical and needs much more error checking code, etc. I have used a Workbook_SheetDeActivate() event to fire a password as a sheet called User1 is fired. If the password is not correct the code returns to sheet1.

You might for example want to use the worksheet code name, which means the code will still work if the worksheet tab name is changed and you may want to store the passwords for each sheet on another worksheet which is hidden using xlVeryHidden. (This cannot then be seen in the UI and only un-hidden through code), but this would make maintenance far easier.

Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
Dim ans As Variant
If Sh.Name = "User1" Then
ans = InputBox("Enter your password", "Password")
If ans = "Password" Then
Exit Sub
End If
End If
Worksheets("Sheet1").Activate
End Sub


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"SAM SEBAIHI" wrote in message ...

I have 45 different sheets for 44 different workers in one workbook. How can I allow all 45 workers to be able to view sheet (1) and


sheet (2) can be viewed and edited only by the worker who will enter a password 22sa
sheet (3) can be viewed and edited only by the worker who will enter a password 164
sheet (4) can be viewed and edited only by the worker who will enter a password xyz
etc...up to 45 different workers

Keep in mind that there are some cells are protected and some are not in all the sheet.

Is there a way?


------------------------------------------------------------------------------

Sam Sebaihi

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default How can I have 45 mulitple sheets with 45 different acess rights to view to each sheet


Thank you so much Nick!

--------------------------------------------------------------------------------

Sam Sebaihi
Faculty
Western International University
Associate Programs

(alternate email)
Phone #: (405)315-8223 Time zone: Pacific Time
"Nick Hodge" wrote in message ...
Sam

Most things are possible. This is *very* theoretical and needs much more error checking code, etc. I have used a Workbook_SheetDeActivate() event to fire a password as a sheet called User1 is fired. If the password is not correct the code returns to sheet1.

You might for example want to use the worksheet code name, which means the code will still work if the worksheet tab name is changed and you may want to store the passwords for each sheet on another worksheet which is hidden using xlVeryHidden. (This cannot then be seen in the UI and only un-hidden through code), but this would make maintenance far easier.

Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
Dim ans As Variant
If Sh.Name = "User1" Then
ans = InputBox("Enter your password", "Password")
If ans = "Password" Then
Exit Sub
End If
End If
Worksheets("Sheet1").Activate
End Sub


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"SAM SEBAIHI" wrote in message ...

I have 45 different sheets for 44 different workers in one workbook. How can I allow all 45 workers to be able to view sheet (1) and


sheet (2) can be viewed and edited only by the worker who will enter a password 22sa
sheet (3) can be viewed and edited only by the worker who will enter a password 164
sheet (4) can be viewed and edited only by the worker who will enter a password xyz
etc...up to 45 different workers

Keep in mind that there are some cells are protected and some are not in all the sheet.

Is there a way?


----------------------------------------------------------------------------

Sam Sebaihi

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default How can I have 45 mulitple sheets with 45 different acess rights to view to each sheet

Pleasure

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"SAM SEBAIHI" wrote in message ...

Thank you so much Nick!

------------------------------------------------------------------------------

Sam Sebaihi
Faculty
Western International University
Associate Programs

(alternate email)
Phone #: (405)315-8223 Time zone: Pacific Time
"Nick Hodge" wrote in message ...
Sam

Most things are possible. This is *very* theoretical and needs much more error checking code, etc. I have used a Workbook_SheetDeActivate() event to fire a password as a sheet called User1 is fired. If the password is not correct the code returns to sheet1.

You might for example want to use the worksheet code name, which means the code will still work if the worksheet tab name is changed and you may want to store the passwords for each sheet on another worksheet which is hidden using xlVeryHidden. (This cannot then be seen in the UI and only un-hidden through code), but this would make maintenance far easier.

Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
Dim ans As Variant
If Sh.Name = "User1" Then
ans = InputBox("Enter your password", "Password")
If ans = "Password" Then
Exit Sub
End If
End If
Worksheets("Sheet1").Activate
End Sub


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"SAM SEBAIHI" wrote in message ...

I have 45 different sheets for 44 different workers in one workbook. How can I allow all 45 workers to be able to view sheet (1) and


sheet (2) can be viewed and edited only by the worker who will enter a password 22sa
sheet (3) can be viewed and edited only by the worker who will enter a password 164
sheet (4) can be viewed and edited only by the worker who will enter a password xyz
etc...up to 45 different workers

Keep in mind that there are some cells are protected and some are not in all the sheet.

Is there a way?


--------------------------------------------------------------------------

Sam Sebaihi

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
Copy rows of one sheet into mutiple sheets based on column value Wesley Breshears Excel Discussion (Misc queries) 0 October 18th 06 03:19 PM
Sum up columns in different sheet with error check zeyneddine Excel Discussion (Misc queries) 13 July 10th 06 01:21 PM
AUTO FILTER NOT CHANGING RESULTS Dejan Excel Discussion (Misc queries) 25 October 6th 05 02:01 PM
Linking sheets to a summary sheet in workbook gambinijr Excel Discussion (Misc queries) 4 December 16th 04 08:13 PM
linking multiple sheets to a summary sheet greg g Excel Discussion (Misc queries) 1 December 16th 04 07:43 AM


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