Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Selective Viewing

Hi,
Is it possible to require a logon and password to access a worksheet and
then display the worksheet relevant to the user?. For example, User A
enters their password and can then view worksheets 7 to 10, User B logs in
and can access Worksheets 7 plus sheets 11 to 12.

If this is possible I'd be grateful for any web links or recommended
reading.

Thanks,
Mickey


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Selective Viewing

Right click master sheet tabview codeinsert thisSAVE
add a sheet deactivate to set the password.

Private Sub Worksheet_Change(ByVal Target As Range)
Select Case UCase(Range("a2"))
Case Is = "JOE": x = 10
Case Is = "BILL": x = 2
Case Else: MsgBox "Not Authorized"
End Select
With Sheets("sheet" & x)
..Select
..Unprotect Password:=UCase(Range("a2"))
End With
End Sub

--
Don Guillett
SalesAid Software

"MBlake" wrote in message
...
Hi,
Is it possible to require a logon and password to access a worksheet and
then display the worksheet relevant to the user?. For example, User A
enters their password and can then view worksheets 7 to 10, User B logs in
and can access Worksheets 7 plus sheets 11 to 12.

If this is possible I'd be grateful for any web links or recommended
reading.

Thanks,
Mickey




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Selective Viewing

Hi,
Many thanks for your assistance. I added the code to the worksheet object
and saved file but nothing. Do you know where I can find a tutorial on this
aspect of Excel?.

Thanks again,
Mickey


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Selective Viewing

Chip Pearson's site:
http://www.cpearson.com/excel/events.htm

is an introduction to events.

Is that what you meant?

--
Regards,
Tom Ogilvy


"MBlake" wrote in message
...
Hi,
Many thanks for your assistance. I added the code to the worksheet object
and saved file but nothing. Do you know where I can find a tutorial on

this
aspect of Excel?.

Thanks again,
Mickey




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Selective Viewing

You probably did not modify to fit YOUR situation.
Did you use cell a2 to type in the name Joe or Bill?
Do you have a sheet2 and a sheet10?

--
Don Guillett
SalesAid Software

"MBlake" wrote in message
...
Hi,
Many thanks for your assistance. I added the code to the worksheet object
and saved file but nothing. Do you know where I can find a tutorial on

this
aspect of Excel?.

Thanks again,
Mickey






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Selective Viewing

Thanks Guys,
I'm still working on this one.

Mickey


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
Selective Validation WildWill Excel Discussion (Misc queries) 4 March 11th 09 10:33 AM
Selective on Name stew Excel Discussion (Misc queries) 5 September 14th 08 07:53 PM
Selective Trendlines Chad[_3_] Charts and Charting in Excel 2 July 19th 08 02:26 PM
Selective calculation PH NEWS Excel Worksheet Functions 2 September 21st 06 01:33 PM
Selective import from CSV CK Excel Programming 5 January 29th 04 01:30 PM


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