+ Reply to Thread
Results 1 to 6 of 6

Selective Viewing

  1. #1
    MBlake
    Guest

    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. #2
    Don Guillett
    Guest

    Re: Selective Viewing

    Right click master sheet tab>view code>insert this>SAVE
    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
    donaldb@281.com
    "MBlake" <mickeyblake@btinternet.com> wrote in message
    news:uR6ab35YFHA.3780@tk2msftngp13.phx.gbl...
    > 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. #3
    MBlake
    Guest

    Re: 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. #4
    Tom Ogilvy
    Guest

    Re: 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" <mickeyblake@btinternet.com> wrote in message
    news:%23wuClvIZFHA.3184@TK2MSFTNGP15.phx.gbl...
    > 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. #5
    Don Guillett
    Guest

    Re: 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
    donaldb@281.com
    "MBlake" <mickeyblake@btinternet.com> wrote in message
    news:%23wuClvIZFHA.3184@TK2MSFTNGP15.phx.gbl...
    > 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. #6
    MBlake
    Guest

    Re: Selective Viewing

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

    Mickey



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1